@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateCapacityReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateCapacityReservationRequest() |
Modifier and Type | Method and Description |
---|---|
CreateCapacityReservationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getName()
The name of the capacity reservation to create.
|
List<Tag> |
getTags()
The tags for the capacity reservation.
|
Integer |
getTargetDpus()
The number of requested data processing units.
|
int |
hashCode() |
void |
setName(String name)
The name of the capacity reservation to create.
|
void |
setTags(Collection<Tag> tags)
The tags for the capacity reservation.
|
void |
setTargetDpus(Integer targetDpus)
The number of requested data processing units.
|
String |
toString()
Returns a string representation of this object.
|
CreateCapacityReservationRequest |
withName(String name)
The name of the capacity reservation to create.
|
CreateCapacityReservationRequest |
withTags(Collection<Tag> tags)
The tags for the capacity reservation.
|
CreateCapacityReservationRequest |
withTags(Tag... tags)
The tags for the capacity reservation.
|
CreateCapacityReservationRequest |
withTargetDpus(Integer targetDpus)
The number of requested data processing units.
|
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 void setTargetDpus(Integer targetDpus)
The number of requested data processing units.
targetDpus
- The number of requested data processing units.public Integer getTargetDpus()
The number of requested data processing units.
public CreateCapacityReservationRequest withTargetDpus(Integer targetDpus)
The number of requested data processing units.
targetDpus
- The number of requested data processing units.public void setName(String name)
The name of the capacity reservation to create.
name
- The name of the capacity reservation to create.public String getName()
The name of the capacity reservation to create.
public CreateCapacityReservationRequest withName(String name)
The name of the capacity reservation to create.
name
- The name of the capacity reservation to create.public List<Tag> getTags()
The tags for the capacity reservation.
public void setTags(Collection<Tag> tags)
The tags for the capacity reservation.
tags
- The tags for the capacity reservation.public CreateCapacityReservationRequest withTags(Tag... tags)
The tags for the capacity reservation.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags for the capacity reservation.public CreateCapacityReservationRequest withTags(Collection<Tag> tags)
The tags for the capacity reservation.
tags
- The tags for the capacity reservation.public String toString()
toString
in class Object
Object.toString()
public CreateCapacityReservationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()