@Generated(value="software.amazon.awssdk:codegen") public final class CreateReservedInstancesListingRequest extends Ec2Request implements ToCopyableBuilder<CreateReservedInstancesListingRequest.Builder,CreateReservedInstancesListingRequest>
Contains the parameters for CreateReservedInstancesListing.
Modifier and Type | Class and Description |
---|---|
static interface |
CreateReservedInstancesListingRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static CreateReservedInstancesListingRequest.Builder |
builder() |
String |
clientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of your listings.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
Integer |
instanceCount()
The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance
Marketplace.
|
List<PriceScheduleSpecification> |
priceSchedules()
A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance
term.
|
String |
reservedInstancesId()
The ID of the active Standard Reserved Instance.
|
static Class<? extends CreateReservedInstancesListingRequest.Builder> |
serializableBuilderClass() |
CreateReservedInstancesListingRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public 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.
public 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.
public List<PriceScheduleSpecification> priceSchedules()
A list specifying the price of the Standard Reserved Instance for each month remaining in the Reserved Instance term.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public String reservedInstancesId()
The ID of the active Standard Reserved Instance.
public CreateReservedInstancesListingRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<CreateReservedInstancesListingRequest.Builder,CreateReservedInstancesListingRequest>
toBuilder
in class Ec2Request
public static CreateReservedInstancesListingRequest.Builder builder()
public static Class<? extends CreateReservedInstancesListingRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.