Class SpotPlacement

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

public class SpotPlacement extends Object implements Serializable, Cloneable

Describes Spot instance placement.

See Also:
  • Constructor Details

    • SpotPlacement

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

      public SpotPlacement(String availabilityZone)
      Constructs a new SpotPlacement object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      availabilityZone - The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

  • Method Details

    • setAvailabilityZone

      public void setAvailabilityZone(String availabilityZone)

      The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

      Parameters:
      availabilityZone - The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

    • getAvailabilityZone

      public String getAvailabilityZone()

      The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

      Returns:
      The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

    • withAvailabilityZone

      public SpotPlacement withAvailabilityZone(String availabilityZone)

      The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

      Parameters:
      availabilityZone - The Availability Zone.

      [Spot fleet only] To specify multiple Availability Zones, separate them using commas; for example, "us-west-2a, us-west-2b".

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setGroupName

      public void setGroupName(String groupName)

      The name of the placement group (for cluster instances).

      Parameters:
      groupName - The name of the placement group (for cluster instances).
    • getGroupName

      public String getGroupName()

      The name of the placement group (for cluster instances).

      Returns:
      The name of the placement group (for cluster instances).
    • withGroupName

      public SpotPlacement withGroupName(String groupName)

      The name of the placement group (for cluster instances).

      Parameters:
      groupName - The name of the placement group (for cluster instances).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • 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 SpotPlacement clone()
      Overrides:
      clone in class Object