Class CreateReservedInstancesListingRequest
- All Implemented Interfaces:
ReadLimitInfo
,DryRunSupportedRequest<CreateReservedInstancesListingRequest>
,Serializable
,Cloneable
Contains the parameters for CreateReservedInstancesListing.
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
Unique, case-sensitive identifier you provide to ensure idempotency of your listings.This method is intended for internal use only.The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace.A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.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.toString()
Returns a string representation of this object; useful for testing and debugging.withClientToken
(String clientToken) Unique, case-sensitive identifier you provide to ensure idempotency of your listings.withInstanceCount
(Integer instanceCount) The number of instances that are a part of a Reserved Instance account to be listed in the Reserved Instance Marketplace.withPriceSchedules
(PriceScheduleSpecification... priceSchedules) A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.withPriceSchedules
(Collection<PriceScheduleSpecification> priceSchedules) A list specifying the price of the Reserved Instance for each month remaining in the Reserved Instance term.withReservedInstancesId
(String reservedInstancesId) The ID of the active Reserved Instance.Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
Constructor Details
-
CreateReservedInstancesListingRequest
public CreateReservedInstancesListingRequest()
-
-
Method Details
-
setReservedInstancesId
The ID of the active Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the active Reserved Instance.
-
getReservedInstancesId
The ID of the active Reserved Instance.
- Returns:
- The ID of the active Reserved Instance.
-
withReservedInstancesId
The ID of the active Reserved Instance.
- Parameters:
reservedInstancesId
- The ID of the active Reserved Instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceCount
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.
-
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.
-
withInstanceCount
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.
-
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
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.
NOTE: This method appends the values to the existing list (if any). Use
setPriceSchedules(java.util.Collection)
orwithPriceSchedules(java.util.Collection)
if you want to override the existing values.- Parameters:
priceSchedules
- A list specifying the price of the 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.
-
withPriceSchedules
public CreateReservedInstancesListingRequest withPriceSchedules(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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setClientToken
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.
-
getClientToken
Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
- Returns:
- Unique, case-sensitive identifier you provide to ensure idempotency of your listings. This helps avoid duplicate listings. For more information, see Ensuring Idempotency.
-
withClientToken
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.
-
getDryRunRequest
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.- Specified by:
getDryRunRequest
in interfaceDryRunSupportedRequest<CreateReservedInstancesListingRequest>
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
Description copied from class:AmazonWebServiceRequest
Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clone
in classAmazonWebServiceRequest
- See Also:
-