public class CreateReservedInstancesListingRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<CreateReservedInstancesListingRequest>
Contains the parameters for CreateReservedInstancesListing.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
clientToken
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
private java.lang.Integer |
instanceCount
The number of instances that are a part of a Reserved Instance account to
be listed in the Reserved Instance Marketplace.
|
private SdkInternalList<PriceScheduleSpecification> |
priceSchedules
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
private java.lang.String |
reservedInstancesId
The ID of the active Reserved Instance.
|
NOOP
Constructor and Description |
---|
CreateReservedInstancesListingRequest() |
Modifier and Type | Method and Description |
---|---|
CreateReservedInstancesListingRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
Request<CreateReservedInstancesListingRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
java.lang.Integer |
getInstanceCount()
The number of instances that are a part of a Reserved Instance account to
be listed in the Reserved Instance Marketplace.
|
java.util.List<PriceScheduleSpecification> |
getPriceSchedules()
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
java.lang.String |
getReservedInstancesId()
The ID of the active Reserved Instance.
|
int |
hashCode() |
void |
setClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
void |
setInstanceCount(java.lang.Integer instanceCount)
The number of instances that are a part of a Reserved Instance account to
be listed in the Reserved Instance Marketplace.
|
void |
setPriceSchedules(java.util.Collection<PriceScheduleSpecification> priceSchedules)
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
void |
setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the active Reserved Instance.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateReservedInstancesListingRequest |
withClientToken(java.lang.String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
CreateReservedInstancesListingRequest |
withInstanceCount(java.lang.Integer instanceCount)
The number of instances that are a part of a Reserved Instance account to
be listed in the Reserved Instance Marketplace.
|
CreateReservedInstancesListingRequest |
withPriceSchedules(java.util.Collection<PriceScheduleSpecification> priceSchedules)
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
CreateReservedInstancesListingRequest |
withPriceSchedules(PriceScheduleSpecification... priceSchedules)
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
CreateReservedInstancesListingRequest |
withReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the active Reserved Instance.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String reservedInstancesId
The ID of the active Reserved Instance.
private java.lang.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.
private SdkInternalList<PriceScheduleSpecification> priceSchedules
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
private java.lang.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 CreateReservedInstancesListingRequest()
public void setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the active Reserved Instance.
reservedInstancesId
- The ID of the active Reserved Instance.public java.lang.String getReservedInstancesId()
The ID of the active Reserved Instance.
public CreateReservedInstancesListingRequest withReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the active Reserved Instance.
reservedInstancesId
- The ID of the active Reserved Instance.public void setInstanceCount(java.lang.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.
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 java.lang.Integer getInstanceCount()
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 CreateReservedInstancesListingRequest withInstanceCount(java.lang.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.
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 java.util.List<PriceScheduleSpecification> getPriceSchedules()
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
public void setPriceSchedules(java.util.Collection<PriceScheduleSpecification> priceSchedules)
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
priceSchedules
- A list specifying the price of the Reserved Instance for each
month remaining in the Reserved Instance term.public CreateReservedInstancesListingRequest withPriceSchedules(PriceScheduleSpecification... priceSchedules)
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
NOTE: This method appends the values to the existing list (if
any). Use setPriceSchedules(java.util.Collection)
or
withPriceSchedules(java.util.Collection)
if you want to override
the existing values.
priceSchedules
- A list specifying the price of the Reserved Instance for each
month remaining in the Reserved Instance term.public CreateReservedInstancesListingRequest withPriceSchedules(java.util.Collection<PriceScheduleSpecification> priceSchedules)
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
priceSchedules
- A list specifying the price of the Reserved Instance for each
month remaining in the Reserved Instance term.public void setClientToken(java.lang.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.
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 java.lang.String getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
public CreateReservedInstancesListingRequest withClientToken(java.lang.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.
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 Request<CreateReservedInstancesListingRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<CreateReservedInstancesListingRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateReservedInstancesListingRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()