@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityReservation extends Object implements Serializable, Cloneable, StructuredPojo
A reservation for a specified number of data processing units (DPUs). When a reservation is initially created, it has no DPUs. Athena allocates DPUs until the allocated amount equals the requested amount.
Constructor and Description |
---|
CapacityReservation() |
Modifier and Type | Method and Description |
---|---|
CapacityReservation |
clone() |
boolean |
equals(Object obj) |
Integer |
getAllocatedDpus()
The number of data processing units currently allocated.
|
Date |
getCreationTime()
The time in UTC epoch millis when the capacity reservation was created.
|
CapacityAllocation |
getLastAllocation() |
Date |
getLastSuccessfulAllocationTime()
The time of the most recent capacity allocation that succeeded.
|
String |
getName()
The name of the capacity reservation.
|
String |
getStatus()
The status of the capacity reservation.
|
Integer |
getTargetDpus()
The number of data processing units requested.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllocatedDpus(Integer allocatedDpus)
The number of data processing units currently allocated.
|
void |
setCreationTime(Date creationTime)
The time in UTC epoch millis when the capacity reservation was created.
|
void |
setLastAllocation(CapacityAllocation lastAllocation) |
void |
setLastSuccessfulAllocationTime(Date lastSuccessfulAllocationTime)
The time of the most recent capacity allocation that succeeded.
|
void |
setName(String name)
The name of the capacity reservation.
|
void |
setStatus(String status)
The status of the capacity reservation.
|
void |
setTargetDpus(Integer targetDpus)
The number of data processing units requested.
|
String |
toString()
Returns a string representation of this object.
|
CapacityReservation |
withAllocatedDpus(Integer allocatedDpus)
The number of data processing units currently allocated.
|
CapacityReservation |
withCreationTime(Date creationTime)
The time in UTC epoch millis when the capacity reservation was created.
|
CapacityReservation |
withLastAllocation(CapacityAllocation lastAllocation) |
CapacityReservation |
withLastSuccessfulAllocationTime(Date lastSuccessfulAllocationTime)
The time of the most recent capacity allocation that succeeded.
|
CapacityReservation |
withName(String name)
The name of the capacity reservation.
|
CapacityReservation |
withStatus(CapacityReservationStatus status)
The status of the capacity reservation.
|
CapacityReservation |
withStatus(String status)
The status of the capacity reservation.
|
CapacityReservation |
withTargetDpus(Integer targetDpus)
The number of data processing units requested.
|
public void setName(String name)
The name of the capacity reservation.
name
- The name of the capacity reservation.public String getName()
The name of the capacity reservation.
public CapacityReservation withName(String name)
The name of the capacity reservation.
name
- The name of the capacity reservation.public void setStatus(String status)
The status of the capacity reservation.
status
- The status of the capacity reservation.CapacityReservationStatus
public String getStatus()
The status of the capacity reservation.
CapacityReservationStatus
public CapacityReservation withStatus(String status)
The status of the capacity reservation.
status
- The status of the capacity reservation.CapacityReservationStatus
public CapacityReservation withStatus(CapacityReservationStatus status)
The status of the capacity reservation.
status
- The status of the capacity reservation.CapacityReservationStatus
public void setTargetDpus(Integer targetDpus)
The number of data processing units requested.
targetDpus
- The number of data processing units requested.public Integer getTargetDpus()
The number of data processing units requested.
public CapacityReservation withTargetDpus(Integer targetDpus)
The number of data processing units requested.
targetDpus
- The number of data processing units requested.public void setAllocatedDpus(Integer allocatedDpus)
The number of data processing units currently allocated.
allocatedDpus
- The number of data processing units currently allocated.public Integer getAllocatedDpus()
The number of data processing units currently allocated.
public CapacityReservation withAllocatedDpus(Integer allocatedDpus)
The number of data processing units currently allocated.
allocatedDpus
- The number of data processing units currently allocated.public void setLastAllocation(CapacityAllocation lastAllocation)
lastAllocation
- public CapacityAllocation getLastAllocation()
public CapacityReservation withLastAllocation(CapacityAllocation lastAllocation)
lastAllocation
- public void setLastSuccessfulAllocationTime(Date lastSuccessfulAllocationTime)
The time of the most recent capacity allocation that succeeded.
lastSuccessfulAllocationTime
- The time of the most recent capacity allocation that succeeded.public Date getLastSuccessfulAllocationTime()
The time of the most recent capacity allocation that succeeded.
public CapacityReservation withLastSuccessfulAllocationTime(Date lastSuccessfulAllocationTime)
The time of the most recent capacity allocation that succeeded.
lastSuccessfulAllocationTime
- The time of the most recent capacity allocation that succeeded.public void setCreationTime(Date creationTime)
The time in UTC epoch millis when the capacity reservation was created.
creationTime
- The time in UTC epoch millis when the capacity reservation was created.public Date getCreationTime()
The time in UTC epoch millis when the capacity reservation was created.
public CapacityReservation withCreationTime(Date creationTime)
The time in UTC epoch millis when the capacity reservation was created.
creationTime
- The time in UTC epoch millis when the capacity reservation was created.public String toString()
toString
in class Object
Object.toString()
public CapacityReservation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.