Class PurchaseReservedDBInstancesOfferingRequest
- All Implemented Interfaces:
ReadLimitInfo
,Serializable
,Cloneable
- See Also:
-
Field Summary
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PurchaseReservedDBInstancesOfferingRequest object.PurchaseReservedDBInstancesOfferingRequest
(String reservedDBInstancesOfferingId) Constructs a new PurchaseReservedDBInstancesOfferingRequest object. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates a shallow clone of this request.boolean
The number of instances to reserve.Customer-specified identifier to track this reservation.The ID of the Reserved DB instance offering to purchase.getTags()
int
hashCode()
void
setDBInstanceCount
(Integer dBInstanceCount) The number of instances to reserve.void
setReservedDBInstanceId
(String reservedDBInstanceId) Customer-specified identifier to track this reservation.void
setReservedDBInstancesOfferingId
(String reservedDBInstancesOfferingId) The ID of the Reserved DB instance offering to purchase.void
setTags
(Collection<Tag> tags) toString()
Returns a string representation of this object; useful for testing and debugging.withDBInstanceCount
(Integer dBInstanceCount) The number of instances to reserve.withReservedDBInstanceId
(String reservedDBInstanceId) Customer-specified identifier to track this reservation.withReservedDBInstancesOfferingId
(String reservedDBInstancesOfferingId) The ID of the Reserved DB instance offering to purchase.NOTE: This method appends the values to the existing list (if any).withTags
(Collection<Tag> tags) 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
-
PurchaseReservedDBInstancesOfferingRequest
public PurchaseReservedDBInstancesOfferingRequest()Default constructor for PurchaseReservedDBInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
PurchaseReservedDBInstancesOfferingRequest
Constructs a new PurchaseReservedDBInstancesOfferingRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
reservedDBInstancesOfferingId
- The ID of the Reserved DB instance offering to purchase.Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
-
-
Method Details
-
setReservedDBInstancesOfferingId
The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- Parameters:
reservedDBInstancesOfferingId
- The ID of the Reserved DB instance offering to purchase.Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
-
getReservedDBInstancesOfferingId
The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- Returns:
- The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
-
withReservedDBInstancesOfferingId
public PurchaseReservedDBInstancesOfferingRequest withReservedDBInstancesOfferingId(String reservedDBInstancesOfferingId) The ID of the Reserved DB instance offering to purchase.
Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- Parameters:
reservedDBInstancesOfferingId
- The ID of the Reserved DB instance offering to purchase.Example: 438012d3-4052-4cc7-b2e3-8d3372e0e706
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setReservedDBInstanceId
Customer-specified identifier to track this reservation.
Example: myreservationID
- Parameters:
reservedDBInstanceId
- Customer-specified identifier to track this reservation.Example: myreservationID
-
getReservedDBInstanceId
Customer-specified identifier to track this reservation.
Example: myreservationID
- Returns:
- Customer-specified identifier to track this reservation.
Example: myreservationID
-
withReservedDBInstanceId
public PurchaseReservedDBInstancesOfferingRequest withReservedDBInstanceId(String reservedDBInstanceId) Customer-specified identifier to track this reservation.
Example: myreservationID
- Parameters:
reservedDBInstanceId
- Customer-specified identifier to track this reservation.Example: myreservationID
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDBInstanceCount
The number of instances to reserve.
Default:
1
- Parameters:
dBInstanceCount
- The number of instances to reserve.Default:
1
-
getDBInstanceCount
The number of instances to reserve.
Default:
1
- Returns:
- The number of instances to reserve.
Default:
1
-
withDBInstanceCount
The number of instances to reserve.
Default:
1
- Parameters:
dBInstanceCount
- The number of instances to reserve.Default:
1
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
- Returns:
-
setTags
- Parameters:
tags
-
-
withTags
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
- Parameters:
tags
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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:
-