@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlacementType extends Object implements Serializable, Cloneable, StructuredPojo
The Amazon EC2 Availability Zone configuration of the cluster (job flow).
Constructor and Description |
---|
PlacementType()
Default constructor for PlacementType object.
|
PlacementType(String availabilityZone)
Constructs a new PlacementType object.
|
Modifier and Type | Method and Description |
---|---|
PlacementType |
clone() |
boolean |
equals(Object obj) |
String |
getAvailabilityZone()
The Amazon EC2 Availability Zone for the cluster.
|
List<String> |
getAvailabilityZones()
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the cluster.
|
void |
setAvailabilityZones(Collection<String> availabilityZones)
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone.
|
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 cluster.
|
PlacementType |
withAvailabilityZones(Collection<String> availabilityZones)
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone.
|
PlacementType |
withAvailabilityZones(String... availabilityZones)
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone.
|
public PlacementType()
public PlacementType(String availabilityZone)
availabilityZone
- The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform
instance groups, while AvailabilityZones
(plural) is used for instance fleets.public void setAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform instance
groups, while AvailabilityZones
(plural) is used for instance fleets.
availabilityZone
- The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform
instance groups, while AvailabilityZones
(plural) is used for instance fleets.public String getAvailabilityZone()
The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform instance
groups, while AvailabilityZones
(plural) is used for instance fleets.
AvailabilityZone
is used for uniform
instance groups, while AvailabilityZones
(plural) is used for instance fleets.public PlacementType withAvailabilityZone(String availabilityZone)
The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform instance
groups, while AvailabilityZones
(plural) is used for instance fleets.
availabilityZone
- The Amazon EC2 Availability Zone for the cluster. AvailabilityZone
is used for uniform
instance groups, while AvailabilityZones
(plural) is used for instance fleets.public List<String> getAvailabilityZones()
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
public void setAvailabilityZones(Collection<String> availabilityZones)
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
availabilityZones
- When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the
optimal Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
public PlacementType withAvailabilityZones(String... availabilityZones)
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
NOTE: This method appends the values to the existing list (if any). Use
setAvailabilityZones(java.util.Collection)
or withAvailabilityZones(java.util.Collection)
if
you want to override the existing values.
availabilityZones
- When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the
optimal Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
public PlacementType withAvailabilityZones(Collection<String> availabilityZones)
When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the optimal
Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
availabilityZones
- When multiple Availability Zones are specified, Amazon EMR evaluates them and launches instances in the
optimal Availability Zone. AvailabilityZones
is used for instance fleets, while
AvailabilityZone
(singular) is used for uniform instance groups. The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
public String toString()
toString
in class Object
Object.toString()
public PlacementType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.