com.amazonaws.services.ec2.model
Class Placement

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Placement
All Implemented Interfaces:
java.io.Serializable

public class Placement
extends java.lang.Object
implements java.io.Serializable

Describes the placement for the instance.

See Also:
Serialized Form

Constructor Summary
Placement()
          Default constructor for a new Placement object.
Placement(java.lang.String availabilityZone)
          Constructs a new Placement object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The Availability Zone of the instance.
 java.lang.String getGroupName()
          The name of the placement group the instance is in (for cluster compute instances).
 java.lang.String getTenancy()
          The tenancy of the instance (if the instance is running in a VPC).
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone of the instance.
 void setGroupName(java.lang.String groupName)
          The name of the placement group the instance is in (for cluster compute instances).
 void setTenancy(java.lang.String tenancy)
          The tenancy of the instance (if the instance is running in a VPC).
 void setTenancy(Tenancy tenancy)
          The tenancy of the instance (if the instance is running in a VPC).
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Placement withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone of the instance.
 Placement withGroupName(java.lang.String groupName)
          The name of the placement group the instance is in (for cluster compute instances).
 Placement withTenancy(java.lang.String tenancy)
          The tenancy of the instance (if the instance is running in a VPC).
 Placement withTenancy(Tenancy tenancy)
          The tenancy of the instance (if the instance is running in a VPC).
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Placement

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


Placement

public Placement(java.lang.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 Detail

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone of the instance.

Returns:
The Availability Zone of the instance.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.

Parameters:
availabilityZone - The Availability Zone of the instance.

withAvailabilityZone

public Placement withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone of the instance.

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

Parameters:
availabilityZone - The Availability Zone of the instance.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupName

public java.lang.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).

setGroupName

public void setGroupName(java.lang.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).

withGroupName

public Placement withGroupName(java.lang.String groupName)
The name of the placement group the instance is in (for cluster compute instances).

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

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

getTenancy

public java.lang.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.

Constraints:
Allowed Values: default, dedicated

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.
See Also:
Tenancy

setTenancy

public void setTenancy(java.lang.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.

Constraints:
Allowed Values: default, dedicated

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.
See Also:
Tenancy

withTenancy

public Placement withTenancy(java.lang.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.

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

Constraints:
Allowed Values: default, dedicated

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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

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.

Constraints:
Allowed Values: default, dedicated

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.
See Also:
Tenancy

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.

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

Constraints:
Allowed Values: default, dedicated

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.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.