Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.elasticmapreduce.model
Class KeyValue

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

public class KeyValue
extends Object
implements Serializable

A key value pair.

See Also:
Serialized Form

Constructor Summary
KeyValue()
          Default constructor for a new KeyValue object.
KeyValue(String key, String value)
          Constructs a new KeyValue object.
 
Method Summary
 boolean equals(Object obj)
           
 String getKey()
          The unique identifier of a key value pair.
 String getValue()
          The value part of the identified key.
 int hashCode()
           
 void setKey(String key)
          The unique identifier of a key value pair.
 void setValue(String value)
          The value part of the identified key.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 KeyValue withKey(String key)
          The unique identifier of a key value pair.
 KeyValue withValue(String value)
          The value part of the identified key.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KeyValue

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


KeyValue

public KeyValue(String key,
                String value)
Constructs a new KeyValue object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.

Parameters:
key - The unique identifier of a key value pair.
value - The value part of the identified key.
Method Detail

getKey

public String getKey()
The unique identifier of a key value pair.

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

Returns:
The unique identifier of a key value pair.

setKey

public void setKey(String key)
The unique identifier of a key value pair.

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

Parameters:
key - The unique identifier of a key value pair.

withKey

public KeyValue withKey(String key)
The unique identifier of a key value pair.

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

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

Parameters:
key - The unique identifier of a key value pair.
Returns:
A reference to this updated object so that method calls can be chained together.

getValue

public String getValue()
The value part of the identified key.

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

Returns:
The value part of the identified key.

setValue

public void setValue(String value)
The value part of the identified key.

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

Parameters:
value - The value part of the identified key.

withValue

public KeyValue withValue(String value)
The value part of the identified key.

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

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

Parameters:
value - The value part of the identified key.
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.