Interface ReservedInstances.Builder

    • Method Detail

      • 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.
      • 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.
      • end

        ReservedInstances.Builder end​(Instant 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.
      • 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.
      • 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, InstanceType
      • 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:
        InstanceType, InstanceType
      • 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:
        RIProductDescription, RIProductDescription
      • 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.
      • start

        ReservedInstances.Builder start​(Instant 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.
      • 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.
      • 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:
        CurrencyCodeValues, CurrencyCodeValues
      • 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:
        CurrencyCodeValues, CurrencyCodeValues
      • 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:
        Tenancy, Tenancy
      • 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:
        Tenancy, Tenancy
      • 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:
        OfferingClassType, OfferingClassType
      • 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.
      • scope

        ReservedInstances.Builder scope​(String 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, Scope
      • scope

        ReservedInstances.Builder scope​(Scope 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, Scope
      • tags

        ReservedInstances.Builder tags​(Collection<Tag> 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

        ReservedInstances.Builder tags​(Tag... 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

        ReservedInstances.Builder tags​(Consumer<Tag.Builder>... 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).

        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:
        #tags(java.util.Collection)