Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudsearch.model
Class SourceData

java.lang.Object
  extended by com.amazonaws.services.cloudsearch.model.SourceData
All Implemented Interfaces:
Serializable

public class SourceData
extends Object
implements Serializable

The source attribute name and an optional default value to use if a document doesn't have an attribute of that name.

See Also:
Serialized Form

Constructor Summary
SourceData()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDefaultValue()
          The value of a field or source document attribute.
 String getSourceName()
          The name of the document source field to add to this IndexField.
 int hashCode()
           
 void setDefaultValue(String defaultValue)
          The value of a field or source document attribute.
 void setSourceName(String sourceName)
          The name of the document source field to add to this IndexField.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 SourceData withDefaultValue(String defaultValue)
          The value of a field or source document attribute.
 SourceData withSourceName(String sourceName)
          The name of the document source field to add to this IndexField.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SourceData

public SourceData()
Method Detail

getSourceName

public String getSourceName()
The name of the document source field to add to this IndexField.

Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*

Returns:
The name of the document source field to add to this IndexField.

setSourceName

public void setSourceName(String sourceName)
The name of the document source field to add to this IndexField.

Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*

Parameters:
sourceName - The name of the document source field to add to this IndexField.

withSourceName

public SourceData withSourceName(String sourceName)
The name of the document source field to add to this IndexField.

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

Constraints:
Length: 1 - 64
Pattern: [a-z][a-z0-9_]*

Parameters:
sourceName - The name of the document source field to add to this IndexField.
Returns:
A reference to this updated object so that method calls can be chained together.

getDefaultValue

public String getDefaultValue()
The value of a field or source document attribute.

Constraints:
Length: 0 - 1024

Returns:
The value of a field or source document attribute.

setDefaultValue

public void setDefaultValue(String defaultValue)
The value of a field or source document attribute.

Constraints:
Length: 0 - 1024

Parameters:
defaultValue - The value of a field or source document attribute.

withDefaultValue

public SourceData withDefaultValue(String defaultValue)
The value of a field or source document attribute.

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

Constraints:
Length: 0 - 1024

Parameters:
defaultValue - The value of a field or source document attribute.
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.