Class PlacementGroup

java.lang.Object
com.amazonaws.services.ec2.model.PlacementGroup
All Implemented Interfaces:
Serializable, Cloneable

public class PlacementGroup extends Object implements Serializable, Cloneable

Describes a placement group.

See Also:
  • Constructor Details

    • PlacementGroup

      public PlacementGroup()
      Default constructor for PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • PlacementGroup

      public PlacementGroup(String groupName)
      Constructs a new PlacementGroup object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      groupName - The name of the placement group.
  • Method Details

    • setGroupName

      public void setGroupName(String groupName)

      The name of the placement group.

      Parameters:
      groupName - The name of the placement group.
    • getGroupName

      public String getGroupName()

      The name of the placement group.

      Returns:
      The name of the placement group.
    • withGroupName

      public PlacementGroup withGroupName(String groupName)

      The name of the placement group.

      Parameters:
      groupName - The name of the placement group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setStrategy

      public void setStrategy(String strategy)

      The placement strategy.

      Parameters:
      strategy - The placement strategy.
      See Also:
    • getStrategy

      public String getStrategy()

      The placement strategy.

      Returns:
      The placement strategy.
      See Also:
    • withStrategy

      public PlacementGroup withStrategy(String strategy)

      The placement strategy.

      Parameters:
      strategy - The placement strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setStrategy

      public void setStrategy(PlacementStrategy strategy)

      The placement strategy.

      Parameters:
      strategy - The placement strategy.
      See Also:
    • withStrategy

      public PlacementGroup withStrategy(PlacementStrategy strategy)

      The placement strategy.

      Parameters:
      strategy - The placement strategy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(String state)

      The state of the placement group.

      Parameters:
      state - The state of the placement group.
      See Also:
    • getState

      public String getState()

      The state of the placement group.

      Returns:
      The state of the placement group.
      See Also:
    • withState

      public PlacementGroup withState(String state)

      The state of the placement group.

      Parameters:
      state - The state of the placement group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setState

      public void setState(PlacementGroupState state)

      The state of the placement group.

      Parameters:
      state - The state of the placement group.
      See Also:
    • withState

      public PlacementGroup withState(PlacementGroupState state)

      The state of the placement group.

      Parameters:
      state - The state of the placement group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • toString

      public String toString()
      Returns a string representation of this object; useful for testing and debugging.
      Overrides:
      toString in class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public PlacementGroup clone()
      Overrides:
      clone in class Object