Interface ReservedInstances.Builder

  • Method Details

    • currencyCode

      ReservedInstances.Builder currencyCode(String currencyCode)

      The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

      Parameters:
      currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • currencyCode

      ReservedInstances.Builder currencyCode(CurrencyCodeValues currencyCode)

      The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.

      Parameters:
      currencyCode - The currency of the Reserved Instance. It's specified using ISO 4217 standard currency codes. At this time, the only supported currency is USD.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceTenancy

      ReservedInstances.Builder instanceTenancy(String instanceTenancy)

      The tenancy of the instance.

      Parameters:
      instanceTenancy - The tenancy of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceTenancy

      ReservedInstances.Builder instanceTenancy(Tenancy instanceTenancy)

      The tenancy of the instance.

      Parameters:
      instanceTenancy - The tenancy of the instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • offeringClass

      ReservedInstances.Builder offeringClass(String offeringClass)

      The offering class of the Reserved Instance.

      Parameters:
      offeringClass - The offering class of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • offeringClass

      ReservedInstances.Builder offeringClass(OfferingClassType offeringClass)

      The offering class of the Reserved Instance.

      Parameters:
      offeringClass - The offering class of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • offeringType

      ReservedInstances.Builder offeringType(String offeringType)

      The Reserved Instance offering type.

      Parameters:
      offeringType - The Reserved Instance offering type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • offeringType

      ReservedInstances.Builder offeringType(OfferingTypeValues offeringType)

      The Reserved Instance offering type.

      Parameters:
      offeringType - The Reserved Instance offering type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recurringCharges

      ReservedInstances.Builder recurringCharges(Collection<RecurringCharge> recurringCharges)

      The recurring charge tag assigned to the resource.

      Parameters:
      recurringCharges - The recurring charge tag assigned to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurringCharges

      ReservedInstances.Builder recurringCharges(RecurringCharge... recurringCharges)

      The recurring charge tag assigned to the resource.

      Parameters:
      recurringCharges - The recurring charge tag assigned to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurringCharges

      ReservedInstances.Builder recurringCharges(Consumer<RecurringCharge.Builder>... recurringCharges)

      The recurring charge tag assigned to the resource.

      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<RecurringCharge>).

      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:
    • scope

      The scope of the Reserved Instance.

      Parameters:
      scope - The scope of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • scope

      The scope of the Reserved Instance.

      Parameters:
      scope - The scope of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • tags

      Any tags assigned to the resource.

      Parameters:
      tags - Any tags assigned to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the resource.

      Parameters:
      tags - Any tags assigned to the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Any tags assigned to the resource.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to tags(List<Tag>).

      Parameters:
      tags - a consumer that will call methods on Tag.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reservedInstancesId

      ReservedInstances.Builder reservedInstancesId(String reservedInstancesId)

      The ID of the Reserved Instance.

      Parameters:
      reservedInstancesId - The ID of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      ReservedInstances.Builder instanceType(String instanceType)

      The instance type on which the Reserved Instance can be used.

      Parameters:
      instanceType - The instance type on which the Reserved Instance can be used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceType

      ReservedInstances.Builder instanceType(InstanceType instanceType)

      The instance type on which the Reserved Instance can be used.

      Parameters:
      instanceType - The instance type on which the Reserved Instance can be used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • availabilityZone

      ReservedInstances.Builder availabilityZone(String availabilityZone)

      The Availability Zone in which the Reserved Instance can be used.

      Parameters:
      availabilityZone - The Availability Zone in which the Reserved Instance can be used.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • start

      The date and time the Reserved Instance started.

      Parameters:
      start - The date and time the Reserved Instance started.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • end

      The time when the Reserved Instance expires.

      Parameters:
      end - The time when the Reserved Instance expires.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • duration

      ReservedInstances.Builder duration(Long duration)

      The duration of the Reserved Instance, in seconds.

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

      ReservedInstances.Builder usagePrice(Float usagePrice)

      The usage price of the Reserved Instance, per hour.

      Parameters:
      usagePrice - The usage price of the Reserved Instance, per hour.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • fixedPrice

      ReservedInstances.Builder fixedPrice(Float fixedPrice)

      The purchase price of the Reserved Instance.

      Parameters:
      fixedPrice - The purchase price of the Reserved Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceCount

      ReservedInstances.Builder instanceCount(Integer instanceCount)

      The number of reservations purchased.

      Parameters:
      instanceCount - The number of reservations purchased.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • productDescription

      ReservedInstances.Builder productDescription(String productDescription)

      The Reserved Instance product platform description.

      Parameters:
      productDescription - The Reserved Instance product platform description.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • productDescription

      ReservedInstances.Builder productDescription(RIProductDescription productDescription)

      The Reserved Instance product platform description.

      Parameters:
      productDescription - The Reserved Instance product platform description.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of the Reserved Instance purchase.

      Parameters:
      state - The state of the Reserved Instance purchase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • state

      The state of the Reserved Instance purchase.

      Parameters:
      state - The state of the Reserved Instance purchase.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: