@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CapacityAssignment extends Object implements Serializable, Cloneable, StructuredPojo
A mapping between one or more workgroups and a capacity reservation.
| Constructor and Description | 
|---|
| CapacityAssignment() | 
| Modifier and Type | Method and Description | 
|---|---|
| CapacityAssignment | clone() | 
| boolean | equals(Object obj) | 
| List<String> | getWorkGroupNames()
 The list of workgroup names for the capacity assignment. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setWorkGroupNames(Collection<String> workGroupNames)
 The list of workgroup names for the capacity assignment. | 
| String | toString()Returns a string representation of this object. | 
| CapacityAssignment | withWorkGroupNames(Collection<String> workGroupNames)
 The list of workgroup names for the capacity assignment. | 
| CapacityAssignment | withWorkGroupNames(String... workGroupNames)
 The list of workgroup names for the capacity assignment. | 
public List<String> getWorkGroupNames()
The list of workgroup names for the capacity assignment.
public void setWorkGroupNames(Collection<String> workGroupNames)
The list of workgroup names for the capacity assignment.
workGroupNames - The list of workgroup names for the capacity assignment.public CapacityAssignment withWorkGroupNames(String... workGroupNames)
The list of workgroup names for the capacity assignment.
 NOTE: This method appends the values to the existing list (if any). Use
 setWorkGroupNames(java.util.Collection) or withWorkGroupNames(java.util.Collection) if you want
 to override the existing values.
 
workGroupNames - The list of workgroup names for the capacity assignment.public CapacityAssignment withWorkGroupNames(Collection<String> workGroupNames)
The list of workgroup names for the capacity assignment.
workGroupNames - The list of workgroup names for the capacity assignment.public String toString()
toString in class ObjectObject.toString()public CapacityAssignment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.