@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 Object
Object.toString()
public CapacityAssignment clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.