@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) |
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() |
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 |
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.
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
.
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 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()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.