@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PurchaseCapacityBlockRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<PurchaseCapacityBlockRequest>
NOOP
Constructor and Description |
---|
PurchaseCapacityBlockRequest() |
Modifier and Type | Method and Description |
---|---|
PurchaseCapacityBlockRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getCapacityBlockOfferingId()
The ID of the Capacity Block offering.
|
Request<PurchaseCapacityBlockRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
String |
getInstancePlatform()
The type of operating system for which to reserve capacity.
|
List<TagSpecification> |
getTagSpecifications()
The tags to apply to the Capacity Block during launch.
|
int |
hashCode() |
void |
setCapacityBlockOfferingId(String capacityBlockOfferingId)
The ID of the Capacity Block offering.
|
void |
setInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
|
void |
setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Block during launch.
|
String |
toString()
Returns a string representation of this object.
|
PurchaseCapacityBlockRequest |
withCapacityBlockOfferingId(String capacityBlockOfferingId)
The ID of the Capacity Block offering.
|
PurchaseCapacityBlockRequest |
withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which to reserve capacity.
|
PurchaseCapacityBlockRequest |
withInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
|
PurchaseCapacityBlockRequest |
withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Block during launch.
|
PurchaseCapacityBlockRequest |
withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Capacity Block during launch.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public List<TagSpecification> getTagSpecifications()
The tags to apply to the Capacity Block during launch.
public void setTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Block during launch.
tagSpecifications
- The tags to apply to the Capacity Block during launch.public PurchaseCapacityBlockRequest withTagSpecifications(TagSpecification... tagSpecifications)
The tags to apply to the Capacity Block during launch.
NOTE: This method appends the values to the existing list (if any). Use
setTagSpecifications(java.util.Collection)
or withTagSpecifications(java.util.Collection)
if
you want to override the existing values.
tagSpecifications
- The tags to apply to the Capacity Block during launch.public PurchaseCapacityBlockRequest withTagSpecifications(Collection<TagSpecification> tagSpecifications)
The tags to apply to the Capacity Block during launch.
tagSpecifications
- The tags to apply to the Capacity Block during launch.public void setCapacityBlockOfferingId(String capacityBlockOfferingId)
The ID of the Capacity Block offering.
capacityBlockOfferingId
- The ID of the Capacity Block offering.public String getCapacityBlockOfferingId()
The ID of the Capacity Block offering.
public PurchaseCapacityBlockRequest withCapacityBlockOfferingId(String capacityBlockOfferingId)
The ID of the Capacity Block offering.
capacityBlockOfferingId
- The ID of the Capacity Block offering.public void setInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform
- The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform
public String getInstancePlatform()
The type of operating system for which to reserve capacity.
CapacityReservationInstancePlatform
public PurchaseCapacityBlockRequest withInstancePlatform(String instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform
- The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform
public PurchaseCapacityBlockRequest withInstancePlatform(CapacityReservationInstancePlatform instancePlatform)
The type of operating system for which to reserve capacity.
instancePlatform
- The type of operating system for which to reserve capacity.CapacityReservationInstancePlatform
public Request<PurchaseCapacityBlockRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<PurchaseCapacityBlockRequest>
public String toString()
toString
in class Object
Object.toString()
public PurchaseCapacityBlockRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()