Class PlacementType
- java.lang.Object
-
- com.amazonaws.services.elasticmapreduce.model.PlacementType
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class PlacementType extends Object implements Serializable, Cloneable
The Amazon EC2 location for the job flow.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PlacementType()
Default constructor for PlacementType object.PlacementType(String availabilityZone)
Constructs a new PlacementType object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PlacementType
clone()
boolean
equals(Object obj)
String
getAvailabilityZone()
The Amazon EC2 Availability Zone for the job flow.int
hashCode()
void
setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the job flow.String
toString()
Returns a string representation of this object; useful for testing and debugging.PlacementType
withAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the job flow.
-
-
-
Constructor Detail
-
PlacementType
public PlacementType()
Default constructor for PlacementType object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
-
PlacementType
public PlacementType(String availabilityZone)
Constructs a new PlacementType object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
availabilityZone
- The Amazon EC2 Availability Zone for the job flow.
-
-
Method Detail
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the job flow.
- Parameters:
availabilityZone
- The Amazon EC2 Availability Zone for the job flow.
-
getAvailabilityZone
public String getAvailabilityZone()
The Amazon EC2 Availability Zone for the job flow.
- Returns:
- The Amazon EC2 Availability Zone for the job flow.
-
withAvailabilityZone
public PlacementType withAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the job flow.
- Parameters:
availabilityZone
- The Amazon EC2 Availability Zone for the job flow.- 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public PlacementType clone()
-
-