Interface SavingsPlan.Builder

    • Method Detail

      • offeringId

        SavingsPlan.Builder offeringId​(String offeringId)

        The ID of the offering.

        Parameters:
        offeringId - The ID of the offering.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • savingsPlanId

        SavingsPlan.Builder savingsPlanId​(String savingsPlanId)

        The ID of the Savings Plan.

        Parameters:
        savingsPlanId - The ID of the Savings Plan.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • savingsPlanArn

        SavingsPlan.Builder savingsPlanArn​(String savingsPlanArn)

        The Amazon Resource Name (ARN) of the Savings Plan.

        Parameters:
        savingsPlanArn - The Amazon Resource Name (ARN) of the Savings Plan.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • description

        SavingsPlan.Builder description​(String description)

        The description.

        Parameters:
        description - The description.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • start

        SavingsPlan.Builder start​(String start)

        The start time.

        Parameters:
        start - The start time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • end

        SavingsPlan.Builder end​(String end)

        The end time.

        Parameters:
        end - The end time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • region

        SavingsPlan.Builder region​(String region)

        The Amazon Web Services Region.

        Parameters:
        region - The Amazon Web Services Region.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ec2InstanceFamily

        SavingsPlan.Builder ec2InstanceFamily​(String ec2InstanceFamily)

        The EC2 instance family.

        Parameters:
        ec2InstanceFamily - The EC2 instance family.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • savingsPlanType

        SavingsPlan.Builder savingsPlanType​(String savingsPlanType)

        The plan type.

        Parameters:
        savingsPlanType - The plan type.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SavingsPlanType, SavingsPlanType
      • productTypesWithStrings

        SavingsPlan.Builder productTypesWithStrings​(Collection<String> productTypes)

        The product types.

        Parameters:
        productTypes - The product types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productTypesWithStrings

        SavingsPlan.Builder productTypesWithStrings​(String... productTypes)

        The product types.

        Parameters:
        productTypes - The product types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productTypes

        SavingsPlan.Builder productTypes​(Collection<SavingsPlanProductType> productTypes)

        The product types.

        Parameters:
        productTypes - The product types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • productTypes

        SavingsPlan.Builder productTypes​(SavingsPlanProductType... productTypes)

        The product types.

        Parameters:
        productTypes - The product types.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • commitment

        SavingsPlan.Builder commitment​(String commitment)

        The hourly commitment amount in the specified currency.

        Parameters:
        commitment - The hourly commitment amount in the specified currency.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • upfrontPaymentAmount

        SavingsPlan.Builder upfrontPaymentAmount​(String upfrontPaymentAmount)

        The up-front payment amount.

        Parameters:
        upfrontPaymentAmount - The up-front payment amount.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recurringPaymentAmount

        SavingsPlan.Builder recurringPaymentAmount​(String recurringPaymentAmount)

        The recurring payment amount.

        Parameters:
        recurringPaymentAmount - The recurring payment amount.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • termDurationInSeconds

        SavingsPlan.Builder termDurationInSeconds​(Long termDurationInSeconds)

        The duration of the term, in seconds.

        Parameters:
        termDurationInSeconds - The duration of the term, in seconds.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • tags

        SavingsPlan.Builder tags​(Map<String,​String> tags)

        One or more tags.

        Parameters:
        tags - One or more tags.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • returnableUntil

        SavingsPlan.Builder returnableUntil​(String returnableUntil)

        The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.

        Parameters:
        returnableUntil - The time until when a return for the Savings Plan can be requested. If the Savings Plan is not returnable, the field reflects the Savings Plan start time.
        Returns:
        Returns a reference to this object so that method calls can be chained together.