com.amazonaws.services.ec2.model
Class Placement

java.lang.Object
  extended by com.amazonaws.services.ec2.model.Placement

public class Placement
extends Object

Describes where an Amazon EC2 instance is running within an Amazon EC2 region.


Constructor Summary
Placement()
          Default constructor for a new Placement object.
Placement(String availabilityZone)
          Constructs a new Placement object.
 
Method Summary
 boolean equals(Object obj)
           
 String getAvailabilityZone()
          The availability zone in which an Amazon EC2 instance runs.
 String getGroupName()
          The name of the PlacementGroup in which an Amazon EC2 instance runs.
 String getTenancy()
          The allowed tenancy of instances launched into the VPC.
 int hashCode()
           
 void setAvailabilityZone(String availabilityZone)
          The availability zone in which an Amazon EC2 instance runs.
 void setGroupName(String groupName)
          The name of the PlacementGroup in which an Amazon EC2 instance runs.
 void setTenancy(String tenancy)
          The allowed tenancy of instances launched into the VPC.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Placement withAvailabilityZone(String availabilityZone)
          The availability zone in which an Amazon EC2 instance runs.
 Placement withGroupName(String groupName)
          The name of the PlacementGroup in which an Amazon EC2 instance runs.
 Placement withTenancy(String tenancy)
          The allowed tenancy of instances launched into the 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(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 in which an Amazon EC2 instance runs.
Method Detail

getAvailabilityZone

public String getAvailabilityZone()
The availability zone in which an Amazon EC2 instance runs.

Returns:
The availability zone in which an Amazon EC2 instance runs.

setAvailabilityZone

public void setAvailabilityZone(String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.

Parameters:
availabilityZone - The availability zone in which an Amazon EC2 instance runs.

withAvailabilityZone

public Placement withAvailabilityZone(String availabilityZone)
The availability zone in which an Amazon EC2 instance runs.

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

Parameters:
availabilityZone - The availability zone in which an Amazon EC2 instance runs.
Returns:
A reference to this updated object so that method calls can be chained together.

getGroupName

public String getGroupName()
The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

Returns:
The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

setGroupName

public void setGroupName(String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

Parameters:
groupName - The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

withGroupName

public Placement withGroupName(String groupName)
The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.

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

Parameters:
groupName - The name of the PlacementGroup in which an Amazon EC2 instance runs. Placement groups are primarily used for launching High Performance Computing instances in the same group to ensure fast connection speeds.
Returns:
A reference to this updated object so that method calls can be chained together.

getTenancy

public String getTenancy()
The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

Returns:
The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

setTenancy

public void setTenancy(String tenancy)
The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

Parameters:
tenancy - The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

withTenancy

public Placement withTenancy(String tenancy)
The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.

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

Parameters:
tenancy - The allowed tenancy of instances launched into the VPC. A value of default means instances can be launched with any tenancy; a value of dedicated means all instances launched into the VPC will be launched as dedicated tenancy regardless of the tenancy assigned to the instance at launch.
Returns:
A reference to this updated 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:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


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