Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.cloudsearch.model
Class TextOptions

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

public class TextOptions
extends Object
implements Serializable

Options that define a text field in the search index.

See Also:
Serialized Form

Constructor Summary
TextOptions()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDefaultValue()
          The default value for a text field.
 Boolean getFacetEnabled()
          Specifies whether facets are enabled for this field.
 Boolean getResultEnabled()
          Specifies whether values of this field can be returned in search results and used for ranking.
 int hashCode()
           
 Boolean isFacetEnabled()
          Specifies whether facets are enabled for this field.
 Boolean isResultEnabled()
          Specifies whether values of this field can be returned in search results and used for ranking.
 void setDefaultValue(String defaultValue)
          The default value for a text field.
 void setFacetEnabled(Boolean facetEnabled)
          Specifies whether facets are enabled for this field.
 void setResultEnabled(Boolean resultEnabled)
          Specifies whether values of this field can be returned in search results and used for ranking.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 TextOptions withDefaultValue(String defaultValue)
          The default value for a text field.
 TextOptions withFacetEnabled(Boolean facetEnabled)
          Specifies whether facets are enabled for this field.
 TextOptions withResultEnabled(Boolean resultEnabled)
          Specifies whether values of this field can be returned in search results and used for ranking.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextOptions

public TextOptions()
Method Detail

getDefaultValue

public String getDefaultValue()
The default value for a text field.

Constraints:
Length: 0 - 1024

Returns:
The default value for a text field.

setDefaultValue

public void setDefaultValue(String defaultValue)
The default value for a text field.

Constraints:
Length: 0 - 1024

Parameters:
defaultValue - The default value for a text field.

withDefaultValue

public TextOptions withDefaultValue(String defaultValue)
The default value for a text field.

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

Constraints:
Length: 0 - 1024

Parameters:
defaultValue - The default value for a text field.
Returns:
A reference to this updated object so that method calls can be chained together.

isFacetEnabled

public Boolean isFacetEnabled()
Specifies whether facets are enabled for this field.

Returns:
Specifies whether facets are enabled for this field.

setFacetEnabled

public void setFacetEnabled(Boolean facetEnabled)
Specifies whether facets are enabled for this field.

Parameters:
facetEnabled - Specifies whether facets are enabled for this field.

withFacetEnabled

public TextOptions withFacetEnabled(Boolean facetEnabled)
Specifies whether facets are enabled for this field.

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

Parameters:
facetEnabled - Specifies whether facets are enabled for this field.
Returns:
A reference to this updated object so that method calls can be chained together.

getFacetEnabled

public Boolean getFacetEnabled()
Specifies whether facets are enabled for this field.

Returns:
Specifies whether facets are enabled for this field.

isResultEnabled

public Boolean isResultEnabled()
Specifies whether values of this field can be returned in search results and used for ranking.

Returns:
Specifies whether values of this field can be returned in search results and used for ranking.

setResultEnabled

public void setResultEnabled(Boolean resultEnabled)
Specifies whether values of this field can be returned in search results and used for ranking.

Parameters:
resultEnabled - Specifies whether values of this field can be returned in search results and used for ranking.

withResultEnabled

public TextOptions withResultEnabled(Boolean resultEnabled)
Specifies whether values of this field can be returned in search results and used for ranking.

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

Parameters:
resultEnabled - Specifies whether values of this field can be returned in search results and used for ranking.
Returns:
A reference to this updated object so that method calls can be chained together.

getResultEnabled

public Boolean getResultEnabled()
Specifies whether values of this field can be returned in search results and used for ranking.

Returns:
Specifies whether values of this field can be returned in search results and used for ranking.

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.