Class Placement

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

public class Placement extends Object implements Serializable, Cloneable

Describes the placement for the instance.

See Also:
  • Constructor Details

    • Placement

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

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

    • setAvailabilityZone

      public void setAvailabilityZone(String availabilityZone)

      The Availability Zone of the instance.

      Parameters:
      availabilityZone - The Availability Zone of the instance.
    • getAvailabilityZone

      public String getAvailabilityZone()

      The Availability Zone of the instance.

      Returns:
      The Availability Zone of the instance.
    • withAvailabilityZone

      public Placement withAvailabilityZone(String availabilityZone)

      The Availability Zone of the instance.

      Parameters:
      availabilityZone - The Availability Zone of the instance.
      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 the instance is in (for cluster compute instances).

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

      public String getGroupName()

      The name of the placement group the instance is in (for cluster compute instances).

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

      public Placement withGroupName(String groupName)

      The name of the placement group the instance is in (for cluster compute instances).

      Parameters:
      groupName - The name of the placement group the instance is in (for cluster compute instances).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setTenancy

      public void setTenancy(String tenancy)

      The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

      Parameters:
      tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
      See Also:
    • getTenancy

      public String getTenancy()

      The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

      Returns:
      The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
      See Also:
    • withTenancy

      public Placement withTenancy(String tenancy)

      The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

      Parameters:
      tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setTenancy

      public void setTenancy(Tenancy tenancy)

      The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

      Parameters:
      tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
      See Also:
    • withTenancy

      public Placement withTenancy(Tenancy tenancy)

      The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.

      Parameters:
      tenancy - The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setHostId

      public void setHostId(String hostId)

      The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.

      Parameters:
      hostId - The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
    • getHostId

      public String getHostId()

      The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.

      Returns:
      The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
    • withHostId

      public Placement withHostId(String hostId)

      The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.

      Parameters:
      hostId - The ID of the Dedicted host on which the instance resides. This parameter is not support for the ImportInstance command.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAffinity

      public void setAffinity(String affinity)

      The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.

      Parameters:
      affinity - The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
    • getAffinity

      public String getAffinity()

      The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.

      Returns:
      The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
    • withAffinity

      public Placement withAffinity(String affinity)

      The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.

      Parameters:
      affinity - The affinity setting for the instance on the Dedicated host. This parameter is not supported for the ImportInstance command.
      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 Placement clone()
      Overrides:
      clone in class Object