@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() |
boolean |
equals(Object obj) |
Boolean |
getAccept()
Reserved.
|
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 |
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 |
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, copyBaseTo, 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, withSdkRequestTimeoutpublic 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.
instanceCount - The number of instances for which to reserve capacity.public Integer getInstanceCount()
The number of instances for which to reserve capacity.
public ModifyCapacityReservationRequest withInstanceCount(Integer instanceCount)
The number of instances for which to reserve capacity.
instanceCount - The number of instances for which to reserve capacity.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.
EndDateTypepublic 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.
EndDateTypepublic 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.
EndDateTypepublic 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.
EndDateTypepublic 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 Request<ModifyCapacityReservationRequest> getDryRunRequest()
getDryRunRequest in interface DryRunSupportedRequest<ModifyCapacityReservationRequest>public String toString()
toString in class ObjectObject.toString()public ModifyCapacityReservationRequest clone()
clone in class AmazonWebServiceRequestCopyright © 2021. All rights reserved.