@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ModifyCapacityReservationRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<ModifyCapacityReservationRequest>
NOOP
Constructor and Description |
---|
ModifyCapacityReservationRequest() |
Modifier and Type | Method and Description |
---|---|
ModifyCapacityReservationRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Boolean |
getAccept()
Reserved.
|
String |
getAdditionalInfo()
Reserved for future use.
|
String |
getCapacityReservationId()
The ID of the Capacity Reservation.
|
Request<ModifyCapacityReservationRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
Date |
getEndDate()
The date and time at which the Capacity Reservation expires.
|
String |
getEndDateType()
Indicates the way in which the Capacity Reservation ends.
|
Integer |
getInstanceCount()
The number of instances for which to reserve capacity.
|
int |
hashCode() |
Boolean |
isAccept()
Reserved.
|
void |
setAccept(Boolean accept)
Reserved.
|
void |
setAdditionalInfo(String additionalInfo)
Reserved for future use.
|
void |
setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
void |
setEndDate(Date endDate)
The date and time at which the Capacity Reservation expires.
|
void |
setEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
void |
setInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
|
String |
toString()
Returns a string representation of this object.
|
ModifyCapacityReservationRequest |
withAccept(Boolean accept)
Reserved.
|
ModifyCapacityReservationRequest |
withAdditionalInfo(String additionalInfo)
Reserved for future use.
|
ModifyCapacityReservationRequest |
withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
|
ModifyCapacityReservationRequest |
withEndDate(Date endDate)
The date and time at which the Capacity Reservation expires.
|
ModifyCapacityReservationRequest |
withEndDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends.
|
ModifyCapacityReservationRequest |
withEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends.
|
ModifyCapacityReservationRequest |
withInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
|
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 setCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.public String getCapacityReservationId()
The ID of the Capacity Reservation.
public ModifyCapacityReservationRequest withCapacityReservationId(String capacityReservationId)
The ID of the Capacity Reservation.
capacityReservationId
- The ID of the Capacity Reservation.public void setInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by
more than 1000
in a single request.
instanceCount
- The number of instances for which to reserve capacity. The number of instances can't be increased or
decreased by more than 1000
in a single request.public Integer getInstanceCount()
The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by
more than 1000
in a single request.
1000
in a single request.public ModifyCapacityReservationRequest withInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity. The number of instances can't be increased or decreased by
more than 1000
in a single request.
instanceCount
- The number of instances for which to reserve capacity. The number of instances can't be increased or
decreased by more than 1000
in a single request.public void setEndDate(Date endDate)
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
endDate
- The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's
state changes to expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
public Date getEndDate()
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
public ModifyCapacityReservationRequest withEndDate(Date endDate)
The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the reserved
capacity is released and you can no longer launch instances into it. The Capacity Reservation's state changes to
expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
endDate
- The date and time at which the Capacity Reservation expires. When a Capacity Reservation expires, the
reserved capacity is released and you can no longer launch instances into it. The Capacity Reservation's
state changes to expired
when it reaches its end date and time.
The Capacity Reservation is cancelled within an hour from the specified time. For example, if you specify 5/31/2019, 13:30:55, the Capacity Reservation is guaranteed to end between 13:30:55 and 14:30:55 on 5/31/2019.
You must provide an EndDate
value if EndDateType
is limited
. Omit
EndDate
if EndDateType
is unlimited
.
public void setEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if EndDateType
is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if EndDateType
is limited
.
EndDateType
public String getEndDateType()
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if EndDateType
is limited
.
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if EndDateType
is limited
.
EndDateType
public ModifyCapacityReservationRequest withEndDateType(String endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if EndDateType
is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if EndDateType
is limited
.
EndDateType
public ModifyCapacityReservationRequest withEndDateType(EndDateType endDateType)
Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not provide
an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You must
provide an EndDate
value if EndDateType
is limited
.
endDateType
- Indicates the way in which the Capacity Reservation ends. A Capacity Reservation can have one of the
following end types:
unlimited
- The Capacity Reservation remains active until you explicitly cancel it. Do not
provide an EndDate
value if EndDateType
is unlimited
.
limited
- The Capacity Reservation expires automatically at a specified date and time. You
must provide an EndDate
value if EndDateType
is limited
.
EndDateType
public void setAccept(Boolean accept)
Reserved. Capacity Reservations you have created are accepted by default.
accept
- Reserved. Capacity Reservations you have created are accepted by default.public Boolean getAccept()
Reserved. Capacity Reservations you have created are accepted by default.
public ModifyCapacityReservationRequest withAccept(Boolean accept)
Reserved. Capacity Reservations you have created are accepted by default.
accept
- Reserved. Capacity Reservations you have created are accepted by default.public Boolean isAccept()
Reserved. Capacity Reservations you have created are accepted by default.
public void setAdditionalInfo(String additionalInfo)
Reserved for future use.
additionalInfo
- Reserved for future use.public String getAdditionalInfo()
Reserved for future use.
public ModifyCapacityReservationRequest withAdditionalInfo(String additionalInfo)
Reserved for future use.
additionalInfo
- Reserved for future use.public Request<ModifyCapacityReservationRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<ModifyCapacityReservationRequest>
public String toString()
toString
in class Object
Object.toString()
public ModifyCapacityReservationRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()