com.amazonaws.services.ec2.model
Class SpotPlacement

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

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

Describes Spot Instance placement.

See Also:
Serialized Form

Constructor Summary
SpotPlacement()
          Default constructor for a new SpotPlacement object.
SpotPlacement(java.lang.String availabilityZone)
          Constructs a new SpotPlacement object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The Availability Zone.
 java.lang.String getGroupName()
          The Availability Zone group name.
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone.
 void setGroupName(java.lang.String groupName)
          The Availability Zone group name.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SpotPlacement withAvailabilityZone(java.lang.String availabilityZone)
          The Availability Zone.
 SpotPlacement withGroupName(java.lang.String groupName)
          The Availability Zone group name.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SpotPlacement

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


SpotPlacement

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

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Availability Zone.

Returns:
The Availability Zone.

setAvailabilityZone

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

Parameters:
availabilityZone - The Availability Zone.

withAvailabilityZone

public SpotPlacement withAvailabilityZone(java.lang.String availabilityZone)
The Availability Zone.

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

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

getGroupName

public java.lang.String getGroupName()
The Availability Zone group name.

Returns:
The Availability Zone group name.

setGroupName

public void setGroupName(java.lang.String groupName)
The Availability Zone group name.

Parameters:
groupName - The Availability Zone group name.

withGroupName

public SpotPlacement withGroupName(java.lang.String groupName)
The Availability Zone group name.

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

Parameters:
groupName - The Availability Zone group name.
Returns:
A reference to this updated object so that method calls can be chained together.

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.