Interface ReservedInstancesListing.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReservedInstancesListing.Builder,ReservedInstancesListing>,SdkBuilder<ReservedInstancesListing.Builder,ReservedInstancesListing>,SdkPojo
- Enclosing class:
- ReservedInstancesListing
@Mutable @NotThreadSafe public static interface ReservedInstancesListing.Builder extends SdkPojo, CopyableBuilder<ReservedInstancesListing.Builder,ReservedInstancesListing>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReservedInstancesListing.BuilderclientToken(String clientToken)A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.ReservedInstancesListing.BuildercreateDate(Instant createDate)The time the listing was created.ReservedInstancesListing.BuilderinstanceCounts(Collection<InstanceCount> instanceCounts)The number of instances in this state.ReservedInstancesListing.BuilderinstanceCounts(Consumer<InstanceCount.Builder>... instanceCounts)The number of instances in this state.ReservedInstancesListing.BuilderinstanceCounts(InstanceCount... instanceCounts)The number of instances in this state.ReservedInstancesListing.BuilderpriceSchedules(Collection<PriceSchedule> priceSchedules)The price of the Reserved Instance listing.ReservedInstancesListing.BuilderpriceSchedules(Consumer<PriceSchedule.Builder>... priceSchedules)The price of the Reserved Instance listing.ReservedInstancesListing.BuilderpriceSchedules(PriceSchedule... priceSchedules)The price of the Reserved Instance listing.ReservedInstancesListing.BuilderreservedInstancesId(String reservedInstancesId)The ID of the Reserved Instance.ReservedInstancesListing.BuilderreservedInstancesListingId(String reservedInstancesListingId)The ID of the Reserved Instance listing.ReservedInstancesListing.Builderstatus(String status)The status of the Reserved Instance listing.ReservedInstancesListing.Builderstatus(ListingStatus status)The status of the Reserved Instance listing.ReservedInstancesListing.BuilderstatusMessage(String statusMessage)The reason for the current status of the Reserved Instance listing.ReservedInstancesListing.Buildertags(Collection<Tag> tags)Any tags assigned to the resource.ReservedInstancesListing.Buildertags(Consumer<Tag.Builder>... tags)Any tags assigned to the resource.ReservedInstancesListing.Buildertags(Tag... tags)Any tags assigned to the resource.ReservedInstancesListing.BuilderupdateDate(Instant updateDate)The last modified timestamp of the listing.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
clientToken
ReservedInstancesListing.Builder clientToken(String clientToken)
A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.
- Parameters:
clientToken- A unique, case-sensitive key supplied by the client to ensure that the request is idempotent. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createDate
ReservedInstancesListing.Builder createDate(Instant createDate)
The time the listing was created.
- Parameters:
createDate- The time the listing was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCounts
ReservedInstancesListing.Builder instanceCounts(Collection<InstanceCount> instanceCounts)
The number of instances in this state.
- Parameters:
instanceCounts- The number of instances in this state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCounts
ReservedInstancesListing.Builder instanceCounts(InstanceCount... instanceCounts)
The number of instances in this state.
- Parameters:
instanceCounts- The number of instances in this state.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCounts
ReservedInstancesListing.Builder instanceCounts(Consumer<InstanceCount.Builder>... instanceCounts)
The number of instances in this state.
This is a convenience method that creates an instance of theInstanceCount.Builderavoiding the need to create one manually viaInstanceCount.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instanceCounts(List.) - Parameters:
instanceCounts- a consumer that will call methods onInstanceCount.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#instanceCounts(java.util.Collection)
-
priceSchedules
ReservedInstancesListing.Builder priceSchedules(Collection<PriceSchedule> priceSchedules)
The price of the Reserved Instance listing.
- Parameters:
priceSchedules- The price of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priceSchedules
ReservedInstancesListing.Builder priceSchedules(PriceSchedule... priceSchedules)
The price of the Reserved Instance listing.
- Parameters:
priceSchedules- The price of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priceSchedules
ReservedInstancesListing.Builder priceSchedules(Consumer<PriceSchedule.Builder>... priceSchedules)
The price of the Reserved Instance listing.
This is a convenience method that creates an instance of thePriceSchedule.Builderavoiding the need to create one manually viaPriceSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#priceSchedules(List.) - Parameters:
priceSchedules- a consumer that will call methods onPriceSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#priceSchedules(java.util.Collection)
-
reservedInstancesId
ReservedInstancesListing.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.
-
reservedInstancesListingId
ReservedInstancesListing.Builder reservedInstancesListingId(String reservedInstancesListingId)
The ID of the Reserved Instance listing.
- Parameters:
reservedInstancesListingId- The ID of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ReservedInstancesListing.Builder status(String status)
The status of the Reserved Instance listing.
- Parameters:
status- The status of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListingStatus,ListingStatus
-
status
ReservedInstancesListing.Builder status(ListingStatus status)
The status of the Reserved Instance listing.
- Parameters:
status- The status of the Reserved Instance listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ListingStatus,ListingStatus
-
statusMessage
ReservedInstancesListing.Builder statusMessage(String statusMessage)
The reason for the current status of the Reserved Instance listing. The response can be blank.
- Parameters:
statusMessage- The reason for the current status of the Reserved Instance listing. The response can be blank.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
ReservedInstancesListing.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
ReservedInstancesListing.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
ReservedInstancesListing.Builder tags(Consumer<Tag.Builder>... tags)
Any tags assigned to the resource.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
updateDate
ReservedInstancesListing.Builder updateDate(Instant updateDate)
The last modified timestamp of the listing.
- Parameters:
updateDate- The last modified timestamp of the listing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-