Interface CreateReservedInstancesListingRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateReservedInstancesListingRequest.Builder,CreateReservedInstancesListingRequest>,Ec2Request.Builder,SdkBuilder<CreateReservedInstancesListingRequest.Builder,CreateReservedInstancesListingRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateReservedInstancesListingRequest
@Mutable @NotThreadSafe public static interface CreateReservedInstancesListingRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateReservedInstancesListingRequest.Builder,CreateReservedInstancesListingRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateReservedInstancesListingRequest.BuilderclientToken(String clientToken)Unique, case-sensitive identifier you provide to ensure idempotency of your listings.CreateReservedInstancesListingRequest.BuilderinstanceCount(Integer instanceCount)The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace.CreateReservedInstancesListingRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateReservedInstancesListingRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateReservedInstancesListingRequest.BuilderpriceSchedules(Collection<PriceScheduleSpecification> priceSchedules)A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.CreateReservedInstancesListingRequest.BuilderpriceSchedules(Consumer<PriceScheduleSpecification.Builder>... priceSchedules)A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.CreateReservedInstancesListingRequest.BuilderpriceSchedules(PriceScheduleSpecification... priceSchedules)A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.CreateReservedInstancesListingRequest.BuilderreservedInstancesId(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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
reservedInstancesId
CreateReservedInstancesListingRequest.Builder reservedInstancesId(String 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.
-
instanceCount
CreateReservedInstancesListingRequest.Builder instanceCount(Integer 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.Builderavoiding the need to create one manually viaPriceScheduleSpecification.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 onPriceScheduleSpecification.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#priceSchedules(java.util.Collection)
-
clientToken
CreateReservedInstancesListingRequest.Builder clientToken(String 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.
-
overrideConfiguration
CreateReservedInstancesListingRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateReservedInstancesListingRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-