com.amazonaws.services.ec2.model
Class CreateReservedInstancesListingRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.CreateReservedInstancesListingRequest
All Implemented Interfaces:
java.io.Serializable

public class CreateReservedInstancesListingRequest
extends AmazonWebServiceRequest
implements java.io.Serializable

Container for the parameters to the 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 .

See Also:
AmazonEC2.createReservedInstancesListing(CreateReservedInstancesListingRequest), Serialized Form

Constructor Summary
CreateReservedInstancesListingRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getClientToken()
          Unique, case-sensitive identifier you provide to ensure idempotency of your listings.
 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.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CreateReservedInstancesListingRequest

public CreateReservedInstancesListingRequest()
Method Detail

getReservedInstancesId

public java.lang.String getReservedInstancesId()
The ID of the active Reserved Instance.

Returns:
The ID of the active Reserved Instance.

setReservedInstancesId

public void setReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the active Reserved Instance.

Parameters:
reservedInstancesId - The ID of the active Reserved Instance.

withReservedInstancesId

public CreateReservedInstancesListingRequest withReservedInstancesId(java.lang.String reservedInstancesId)
The ID of the active Reserved Instance.

Returns a reference to this object so that method calls can be chained together.

Parameters:
reservedInstancesId - The ID of the active Reserved Instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceCount

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.

Returns:
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.

setInstanceCount

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.

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.

withInstanceCount

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.

Returns a reference to this object so that method calls can be chained together.

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:
A reference to this updated object so that method calls can be chained together.

getPriceSchedules

public java.util.List<PriceScheduleSpecification> getPriceSchedules()
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

Returns:
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

setPriceSchedules

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.

Parameters:
priceSchedules - A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

withPriceSchedules

public CreateReservedInstancesListingRequest withPriceSchedules(PriceScheduleSpecification... priceSchedules)
A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.

Returns a reference to this object so that method calls can be chained together.

Parameters:
priceSchedules - A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
Returns:
A reference to this updated object so that method calls can be chained together.

withPriceSchedules

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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
priceSchedules - A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.
Returns:
A reference to this updated object so that method calls can be chained together.

getClientToken

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 in the Amazon Elastic Compute Cloud User Guide.

Returns:
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.

setClientToken

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 in the Amazon Elastic Compute Cloud User Guide.

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 in the Amazon Elastic Compute Cloud User Guide.

withClientToken

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 in the Amazon Elastic Compute Cloud User Guide.

Returns a reference to this object so that method calls can be chained together.

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 in the Amazon Elastic Compute Cloud User Guide.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.