public class CreateReservedInstancesListingRequest extends AmazonWebServiceRequest implements Serializable
CreateReservedInstancesListing operation
.
Creates a listing for Amazon EC2 Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Reserved Instance listing at a time.
For more information, see Reserved Instance Marketplace in the Amazon Elastic Compute Cloud User Guide .
NOOP
Constructor and Description |
---|
CreateReservedInstancesListingRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getClientToken()
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
Integer |
getInstanceCount()
The number of instances that are a part of a Reserved Instance account
to be listed in the Reserved Instance Marketplace.
|
List<PriceScheduleSpecification> |
getPriceSchedules()
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
String |
getReservedInstancesId()
The ID of the active Reserved Instance.
|
int |
hashCode() |
void |
setClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
void |
setInstanceCount(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(Collection<PriceScheduleSpecification> priceSchedules)
A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.
|
void |
setReservedInstancesId(String reservedInstancesId)
The ID of the active Reserved Instance.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateReservedInstancesListingRequest |
withClientToken(String clientToken)
Unique, case-sensitive identifier you provide to ensure idempotency of
your listings.
|
CreateReservedInstancesListingRequest |
withInstanceCount(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(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(String reservedInstancesId)
The ID of the active Reserved Instance.
|
copyPrivateRequestParameters, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public CreateReservedInstancesListingRequest()
public String getReservedInstancesId()
public void setReservedInstancesId(String reservedInstancesId)
reservedInstancesId
- The ID of the active Reserved Instance.public CreateReservedInstancesListingRequest withReservedInstancesId(String reservedInstancesId)
Returns a reference to this object so that method calls can be chained together.
reservedInstancesId
- The ID of the active Reserved Instance.public Integer getInstanceCount()
public void setInstanceCount(Integer instanceCount)
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 CreateReservedInstancesListingRequest withInstanceCount(Integer instanceCount)
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.public List<PriceScheduleSpecification> getPriceSchedules()
public void setPriceSchedules(Collection<PriceScheduleSpecification> priceSchedules)
priceSchedules
- A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.public CreateReservedInstancesListingRequest withPriceSchedules(PriceScheduleSpecification... priceSchedules)
Returns a reference to this object so that method calls can be chained together.
priceSchedules
- A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.public CreateReservedInstancesListingRequest withPriceSchedules(Collection<PriceScheduleSpecification> priceSchedules)
Returns a reference to this object so that method calls can be chained together.
priceSchedules
- A list specifying the price of the Reserved Instance for each month
remaining in the Reserved Instance term.public String getClientToken()
public void setClientToken(String clientToken)
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of
your listings. This helps avoid duplicate listings. For more
information, see Ensuring
Idempotency in the Amazon Elastic Compute Cloud User Guide.public CreateReservedInstancesListingRequest withClientToken(String clientToken)
Returns a reference to this object so that method calls can be chained together.
clientToken
- Unique, case-sensitive identifier you provide to ensure idempotency of
your listings. This helps avoid duplicate listings. For more
information, see Ensuring
Idempotency in the Amazon Elastic Compute Cloud User Guide.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.