Interface ReservedInstancesListing.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ReservedInstancesListing.Builder,
,ReservedInstancesListing> SdkBuilder<ReservedInstancesListing.Builder,
,ReservedInstancesListing> SdkPojo
- Enclosing class:
ReservedInstancesListing
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) A unique, case-sensitive key supplied by the client to ensure that the request is idempotent.createDate
(Instant createDate) The time the listing was created.instanceCounts
(Collection<InstanceCount> instanceCounts) The number of instances in this state.instanceCounts
(Consumer<InstanceCount.Builder>... instanceCounts) The number of instances in this state.instanceCounts
(InstanceCount... instanceCounts) The number of instances in this state.priceSchedules
(Collection<PriceSchedule> priceSchedules) The price of the Reserved Instance listing.priceSchedules
(Consumer<PriceSchedule.Builder>... priceSchedules) The price of the Reserved Instance listing.priceSchedules
(PriceSchedule... priceSchedules) The price of the Reserved Instance listing.reservedInstancesId
(String reservedInstancesId) The ID of the Reserved Instance.reservedInstancesListingId
(String reservedInstancesListingId) The ID of the Reserved Instance listing.The status of the Reserved Instance listing.status
(ListingStatus status) The status of the Reserved Instance listing.statusMessage
(String statusMessage) The reason for the current status of the Reserved Instance listing.tags
(Collection<Tag> tags) Any tags assigned to the resource.tags
(Consumer<Tag.Builder>... tags) Any tags assigned to the resource.Any tags assigned to the resource.updateDate
(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, sdkFields
-
Method Details
-
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
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
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
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
The number of instances in this state.
This is a convenience method that creates an instance of theInstanceCount.Builder
avoiding the need to create one manually viaInstanceCount.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceCounts(List<InstanceCount>)
.- 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:
-
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
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
The price of the Reserved Instance listing.
This is a convenience method that creates an instance of thePriceSchedule.Builder
avoiding the need to create one manually viaPriceSchedule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topriceSchedules(List<PriceSchedule>)
.- 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:
-
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
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
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:
-
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:
-
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
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 theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totags(List<Tag>)
.- 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:
-
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.
-