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

public class PlacementType
extends Object

Specifies the Amazon EC2 location for the job flow.


Constructor Summary
PlacementType()
          Default constructor for a new PlacementType object.
PlacementType(String availabilityZone)
          Constructs a new PlacementType object.
 
Method Summary
 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.
 
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(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 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(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(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 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.