com.amazonaws.services.elasticmapreduce.model
Class KeyValue

java.lang.Object
  extended by com.amazonaws.services.elasticmapreduce.model.KeyValue

public class KeyValue
extends Object


Constructor Summary
KeyValue()
           
 
Method Summary
 String getKey()
          The key that is paired with a value in a KeyValue pair.
 String getValue()
          The value paired with a key in a KeyValue pair.
 void setKey(String key)
          The key that is paired with a value in a KeyValue pair.
 void setValue(String value)
          The value paired with a key in a KeyValue pair.
 String toString()
           
 KeyValue withKey(String key)
          The key that is paired with a value in a KeyValue pair.
 KeyValue withValue(String value)
          The value paired with a key in a KeyValue pair.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValue

public KeyValue()
Method Detail

getKey

public String getKey()
The key that is paired with a value in a KeyValue pair.

Returns:
The key that is paired with a value in a KeyValue pair.

setKey

public void setKey(String key)
The key that is paired with a value in a KeyValue pair.

Parameters:
key - The key that is paired with a value in a KeyValue pair.

withKey

public KeyValue withKey(String key)
The key that is paired with a value in a KeyValue pair.

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

Parameters:
key - The key that is paired with a value in a KeyValue pair.
Returns:
A reference to this updated object so that method calls can be chained together.

getValue

public String getValue()
The value paired with a key in a KeyValue pair.

Returns:
The value paired with a key in a KeyValue pair.

setValue

public void setValue(String value)
The value paired with a key in a KeyValue pair.

Parameters:
value - The value paired with a key in a KeyValue pair.

withValue

public KeyValue withValue(String value)
The value paired with a key in a KeyValue pair.

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

Parameters:
value - The value paired with a key in a KeyValue pair.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.