@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityAssignmentConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Assigns Athena workgroups (and hence their queries) to capacity reservations. A capacity reservation can have only one capacity assignment configuration, but the capacity assignment configuration can be made up of multiple individual assignments. Each assignment specifies how Athena queries can consume capacity from the capacity reservation that their workgroup is mapped to.
Constructor and Description |
---|
CapacityAssignmentConfiguration() |
Modifier and Type | Method and Description |
---|---|
CapacityAssignmentConfiguration |
clone() |
boolean |
equals(Object obj) |
List<CapacityAssignment> |
getCapacityAssignments()
The list of assignments that make up the capacity assignment configuration.
|
String |
getCapacityReservationName()
The name of the reservation that the capacity assignment configuration is for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCapacityAssignments(Collection<CapacityAssignment> capacityAssignments)
The list of assignments that make up the capacity assignment configuration.
|
void |
setCapacityReservationName(String capacityReservationName)
The name of the reservation that the capacity assignment configuration is for.
|
String |
toString()
Returns a string representation of this object.
|
CapacityAssignmentConfiguration |
withCapacityAssignments(CapacityAssignment... capacityAssignments)
The list of assignments that make up the capacity assignment configuration.
|
CapacityAssignmentConfiguration |
withCapacityAssignments(Collection<CapacityAssignment> capacityAssignments)
The list of assignments that make up the capacity assignment configuration.
|
CapacityAssignmentConfiguration |
withCapacityReservationName(String capacityReservationName)
The name of the reservation that the capacity assignment configuration is for.
|
public void setCapacityReservationName(String capacityReservationName)
The name of the reservation that the capacity assignment configuration is for.
capacityReservationName
- The name of the reservation that the capacity assignment configuration is for.public String getCapacityReservationName()
The name of the reservation that the capacity assignment configuration is for.
public CapacityAssignmentConfiguration withCapacityReservationName(String capacityReservationName)
The name of the reservation that the capacity assignment configuration is for.
capacityReservationName
- The name of the reservation that the capacity assignment configuration is for.public List<CapacityAssignment> getCapacityAssignments()
The list of assignments that make up the capacity assignment configuration.
public void setCapacityAssignments(Collection<CapacityAssignment> capacityAssignments)
The list of assignments that make up the capacity assignment configuration.
capacityAssignments
- The list of assignments that make up the capacity assignment configuration.public CapacityAssignmentConfiguration withCapacityAssignments(CapacityAssignment... capacityAssignments)
The list of assignments that make up the capacity assignment configuration.
NOTE: This method appends the values to the existing list (if any). Use
setCapacityAssignments(java.util.Collection)
or withCapacityAssignments(java.util.Collection)
if you want to override the existing values.
capacityAssignments
- The list of assignments that make up the capacity assignment configuration.public CapacityAssignmentConfiguration withCapacityAssignments(Collection<CapacityAssignment> capacityAssignments)
The list of assignments that make up the capacity assignment configuration.
capacityAssignments
- The list of assignments that make up the capacity assignment configuration.public String toString()
toString
in class Object
Object.toString()
public CapacityAssignmentConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.