Class Field
- java.lang.Object
-
- com.amazonaws.services.datapipeline.model.Field
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Field extends Object implements Serializable, Cloneable
A key-value pair that describes a property of a pipeline object. The value is specified as either a string value (
StringValue
) or a reference to another object (RefValue
) but not as both.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Field()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Field
clone()
boolean
equals(Object obj)
String
getKey()
The field identifier.String
getRefValue()
The field value, expressed as the identifier of another object.String
getStringValue()
The field value, expressed as a String.int
hashCode()
void
setKey(String key)
The field identifier.void
setRefValue(String refValue)
The field value, expressed as the identifier of another object.void
setStringValue(String stringValue)
The field value, expressed as a String.String
toString()
Returns a string representation of this object; useful for testing and debugging.Field
withKey(String key)
The field identifier.Field
withRefValue(String refValue)
The field value, expressed as the identifier of another object.Field
withStringValue(String stringValue)
The field value, expressed as a String.
-
-
-
Method Detail
-
setKey
public void setKey(String key)
The field identifier.
- Parameters:
key
- The field identifier.
-
getKey
public String getKey()
The field identifier.
- Returns:
- The field identifier.
-
withKey
public Field withKey(String key)
The field identifier.
- Parameters:
key
- The field identifier.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStringValue
public void setStringValue(String stringValue)
The field value, expressed as a String.
- Parameters:
stringValue
- The field value, expressed as a String.
-
getStringValue
public String getStringValue()
The field value, expressed as a String.
- Returns:
- The field value, expressed as a String.
-
withStringValue
public Field withStringValue(String stringValue)
The field value, expressed as a String.
- Parameters:
stringValue
- The field value, expressed as a String.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRefValue
public void setRefValue(String refValue)
The field value, expressed as the identifier of another object.
- Parameters:
refValue
- The field value, expressed as the identifier of another object.
-
getRefValue
public String getRefValue()
The field value, expressed as the identifier of another object.
- Returns:
- The field value, expressed as the identifier of another object.
-
withRefValue
public Field withRefValue(String refValue)
The field value, expressed as the identifier of another object.
- Parameters:
refValue
- The field value, expressed as the identifier of another object.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-