Interface CreateReservedInstancesListingRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateReservedInstancesListingRequest.Builder,
,CreateReservedInstancesListingRequest> Ec2Request.Builder
,SdkBuilder<CreateReservedInstancesListingRequest.Builder,
,CreateReservedInstancesListingRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateReservedInstancesListingRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of your listings.instanceCount
(Integer instanceCount) The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.priceSchedules
(Collection<PriceScheduleSpecification> priceSchedules) A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.priceSchedules
(Consumer<PriceScheduleSpecification.Builder>... priceSchedules) A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.priceSchedules
(PriceScheduleSpecification... priceSchedules) A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.reservedInstancesId
(String reservedInstancesId) The ID of the active Standard Reserved Instance.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
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
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
- Parameters:
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.
- Parameters:
instanceCount
- The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace. This number should be less than or equal to the instance count associated with the Reserved Instance ID specified in this call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priceSchedules
CreateReservedInstancesListingRequest.Builder priceSchedules(Collection<PriceScheduleSpecification> priceSchedules) A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
- Parameters:
priceSchedules
- A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priceSchedules
CreateReservedInstancesListingRequest.Builder priceSchedules(PriceScheduleSpecification... priceSchedules) A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
- Parameters:
priceSchedules
- A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
priceSchedules
CreateReservedInstancesListingRequest.Builder priceSchedules(Consumer<PriceScheduleSpecification.Builder>... priceSchedules) A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
This is a convenience method that creates an instance of thePriceScheduleSpecification.Builder
avoiding the need to create one manually viaPriceScheduleSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topriceSchedules(List<PriceScheduleSpecification>)
.- Parameters:
priceSchedules
- a consumer that will call methods onPriceScheduleSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reservedInstancesId
The ID of the active Standard Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the active Standard Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateReservedInstancesListingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateReservedInstancesListingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-