Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class PlacementType

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

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

Specifies the Amazon EC2 location for the job flow.

See Also:
Serialized Form

Constructor Summary
PlacementType()
          Default constructor for a new PlacementType object.
PlacementType(java.lang.String availabilityZone)
          Constructs a new PlacementType object.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getAvailabilityZone()
          The Amazon EC2 Availability Zone for the job flow.
 int hashCode()
           
 void setAvailabilityZone(java.lang.String availabilityZone)
          The Amazon EC2 Availability Zone for the job flow.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 PlacementType withAvailabilityZone(java.lang.String availabilityZone)
          The Amazon EC2 Availability Zone for the job flow.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PlacementType

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


PlacementType

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

getAvailabilityZone

public java.lang.String getAvailabilityZone()
The Amazon EC2 Availability Zone for the job flow.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Returns:
The Amazon EC2 Availability Zone for the job flow.

setAvailabilityZone

public void setAvailabilityZone(java.lang.String availabilityZone)
The Amazon EC2 Availability Zone for the job flow.

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
availabilityZone - The Amazon EC2 Availability Zone for the job flow.

withAvailabilityZone

public PlacementType withAvailabilityZone(java.lang.String availabilityZone)
The Amazon EC2 Availability Zone for the job flow.

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

Constraints:
Length: 0 - 10280
Pattern: [ -??-??-?\r\n\t]*

Parameters:
availabilityZone - The Amazon EC2 Availability Zone for the job flow.
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.