@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TargetGroupsConfig extends Object implements Serializable, Cloneable
Describes the target groups to attach to a Spot Fleet. Spot Fleet registers the running Spot Instances with these target groups.
Constructor and Description |
---|
TargetGroupsConfig() |
Modifier and Type | Method and Description |
---|---|
TargetGroupsConfig |
clone() |
boolean |
equals(Object obj) |
List<TargetGroup> |
getTargetGroups()
One or more target groups.
|
int |
hashCode() |
void |
setTargetGroups(Collection<TargetGroup> targetGroups)
One or more target groups.
|
String |
toString()
Returns a string representation of this object.
|
TargetGroupsConfig |
withTargetGroups(Collection<TargetGroup> targetGroups)
One or more target groups.
|
TargetGroupsConfig |
withTargetGroups(TargetGroup... targetGroups)
One or more target groups.
|
public List<TargetGroup> getTargetGroups()
One or more target groups.
public void setTargetGroups(Collection<TargetGroup> targetGroups)
One or more target groups.
targetGroups
- One or more target groups.public TargetGroupsConfig withTargetGroups(TargetGroup... targetGroups)
One or more target groups.
NOTE: This method appends the values to the existing list (if any). Use
setTargetGroups(java.util.Collection)
or withTargetGroups(java.util.Collection)
if you want to
override the existing values.
targetGroups
- One or more target groups.public TargetGroupsConfig withTargetGroups(Collection<TargetGroup> targetGroups)
One or more target groups.
targetGroups
- One or more target groups.public String toString()
toString
in class Object
Object.toString()
public TargetGroupsConfig clone()