@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityAllocation extends Object implements Serializable, Cloneable, StructuredPojo
Contains the submission time of a single allocation request for a capacity reservation and the most recent status of the attempted allocation.
Constructor and Description |
---|
CapacityAllocation() |
Modifier and Type | Method and Description |
---|---|
CapacityAllocation |
clone() |
boolean |
equals(Object obj) |
Date |
getRequestCompletionTime()
The time when the capacity allocation request was completed.
|
Date |
getRequestTime()
The time when the capacity allocation was requested.
|
String |
getStatus()
The status of the capacity allocation.
|
String |
getStatusMessage()
The status message of the capacity allocation.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRequestCompletionTime(Date requestCompletionTime)
The time when the capacity allocation request was completed.
|
void |
setRequestTime(Date requestTime)
The time when the capacity allocation was requested.
|
void |
setStatus(String status)
The status of the capacity allocation.
|
void |
setStatusMessage(String statusMessage)
The status message of the capacity allocation.
|
String |
toString()
Returns a string representation of this object.
|
CapacityAllocation |
withRequestCompletionTime(Date requestCompletionTime)
The time when the capacity allocation request was completed.
|
CapacityAllocation |
withRequestTime(Date requestTime)
The time when the capacity allocation was requested.
|
CapacityAllocation |
withStatus(CapacityAllocationStatus status)
The status of the capacity allocation.
|
CapacityAllocation |
withStatus(String status)
The status of the capacity allocation.
|
CapacityAllocation |
withStatusMessage(String statusMessage)
The status message of the capacity allocation.
|
public void setStatus(String status)
The status of the capacity allocation.
status
- The status of the capacity allocation.CapacityAllocationStatus
public String getStatus()
The status of the capacity allocation.
CapacityAllocationStatus
public CapacityAllocation withStatus(String status)
The status of the capacity allocation.
status
- The status of the capacity allocation.CapacityAllocationStatus
public CapacityAllocation withStatus(CapacityAllocationStatus status)
The status of the capacity allocation.
status
- The status of the capacity allocation.CapacityAllocationStatus
public void setStatusMessage(String statusMessage)
The status message of the capacity allocation.
statusMessage
- The status message of the capacity allocation.public String getStatusMessage()
The status message of the capacity allocation.
public CapacityAllocation withStatusMessage(String statusMessage)
The status message of the capacity allocation.
statusMessage
- The status message of the capacity allocation.public void setRequestTime(Date requestTime)
The time when the capacity allocation was requested.
requestTime
- The time when the capacity allocation was requested.public Date getRequestTime()
The time when the capacity allocation was requested.
public CapacityAllocation withRequestTime(Date requestTime)
The time when the capacity allocation was requested.
requestTime
- The time when the capacity allocation was requested.public void setRequestCompletionTime(Date requestCompletionTime)
The time when the capacity allocation request was completed.
requestCompletionTime
- The time when the capacity allocation request was completed.public Date getRequestCompletionTime()
The time when the capacity allocation request was completed.
public CapacityAllocation withRequestCompletionTime(Date requestCompletionTime)
The time when the capacity allocation request was completed.
requestCompletionTime
- The time when the capacity allocation request was completed.public String toString()
toString
in class Object
Object.toString()
public CapacityAllocation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.