Interface ReservedNodeOffering.Builder

    • Method Detail

      • reservedNodeOfferingId

        ReservedNodeOffering.Builder reservedNodeOfferingId​(String reservedNodeOfferingId)

        The offering identifier.

        Parameters:
        reservedNodeOfferingId - The offering identifier.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nodeType

        ReservedNodeOffering.Builder nodeType​(String nodeType)

        The node type offered by the reserved node offering.

        Parameters:
        nodeType - The node type offered by the reserved node offering.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • duration

        ReservedNodeOffering.Builder duration​(Integer duration)

        The duration, in seconds, for which the offering will reserve the node.

        Parameters:
        duration - The duration, in seconds, for which the offering will reserve the node.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • fixedPrice

        ReservedNodeOffering.Builder fixedPrice​(Double fixedPrice)

        The upfront fixed charge you will pay to purchase the specific reserved node offering.

        Parameters:
        fixedPrice - The upfront fixed charge you will pay to purchase the specific reserved node offering.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • usagePrice

        ReservedNodeOffering.Builder usagePrice​(Double usagePrice)

        The rate you are charged for each hour the cluster that is using the offering is running.

        Parameters:
        usagePrice - The rate you are charged for each hour the cluster that is using the offering is running.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • currencyCode

        ReservedNodeOffering.Builder currencyCode​(String currencyCode)

        The currency code for the compute nodes offering.

        Parameters:
        currencyCode - The currency code for the compute nodes offering.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • offeringType

        ReservedNodeOffering.Builder offeringType​(String offeringType)

        The anticipated utilization of the reserved node, as defined in the reserved node offering.

        Parameters:
        offeringType - The anticipated utilization of the reserved node, as defined in the reserved node offering.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recurringCharges

        ReservedNodeOffering.Builder recurringCharges​(Collection<RecurringCharge> recurringCharges)

        The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.

        Parameters:
        recurringCharges - The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recurringCharges

        ReservedNodeOffering.Builder recurringCharges​(RecurringCharge... recurringCharges)

        The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.

        Parameters:
        recurringCharges - The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recurringCharges

        ReservedNodeOffering.Builder recurringCharges​(Consumer<RecurringCharge.Builder>... recurringCharges)

        The charge to your account regardless of whether you are creating any clusters using the node offering. Recurring charges are only in effect for heavy-utilization reserved nodes.

        This is a convenience method that creates an instance of the RecurringCharge.Builder avoiding the need to create one manually via RecurringCharge.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #recurringCharges(List).

        Parameters:
        recurringCharges - a consumer that will call methods on RecurringCharge.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #recurringCharges(java.util.Collection)