com.amazonaws.services.cloudsearchv2.model
Class DateOptions

java.lang.Object
  extended by com.amazonaws.services.cloudsearchv2.model.DateOptions
All Implemented Interfaces:
Serializable

public class DateOptions
extends Object
implements Serializable

Options for a date field. Dates and times are specified in UTC (Coordinated Universal Time) according to IETF RFC3339: yyyy-mm-ddT00:00:00Z. Present if IndexFieldType specifies the field is of type date . All options are enabled by default.

See Also:
Serialized Form

Constructor Summary
DateOptions()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getDefaultValue()
          A value to use for the field if the field isn't specified for a document.
 Boolean getFacetEnabled()
          Whether facet information can be returned for the field.
 Boolean getReturnEnabled()
          Whether the contents of the field can be returned in the search results.
 Boolean getSearchEnabled()
          Whether the contents of the field are searchable.
 Boolean getSortEnabled()
          Whether the field can be used to sort the search results.
 String getSourceField()
          A string that represents the name of an index field.
 int hashCode()
           
 Boolean isFacetEnabled()
          Whether facet information can be returned for the field.
 Boolean isReturnEnabled()
          Whether the contents of the field can be returned in the search results.
 Boolean isSearchEnabled()
          Whether the contents of the field are searchable.
 Boolean isSortEnabled()
          Whether the field can be used to sort the search results.
 void setDefaultValue(String defaultValue)
          A value to use for the field if the field isn't specified for a document.
 void setFacetEnabled(Boolean facetEnabled)
          Whether facet information can be returned for the field.
 void setReturnEnabled(Boolean returnEnabled)
          Whether the contents of the field can be returned in the search results.
 void setSearchEnabled(Boolean searchEnabled)
          Whether the contents of the field are searchable.
 void setSortEnabled(Boolean sortEnabled)
          Whether the field can be used to sort the search results.
 void setSourceField(String sourceField)
          A string that represents the name of an index field.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DateOptions withDefaultValue(String defaultValue)
          A value to use for the field if the field isn't specified for a document.
 DateOptions withFacetEnabled(Boolean facetEnabled)
          Whether facet information can be returned for the field.
 DateOptions withReturnEnabled(Boolean returnEnabled)
          Whether the contents of the field can be returned in the search results.
 DateOptions withSearchEnabled(Boolean searchEnabled)
          Whether the contents of the field are searchable.
 DateOptions withSortEnabled(Boolean sortEnabled)
          Whether the field can be used to sort the search results.
 DateOptions withSourceField(String sourceField)
          A string that represents the name of an index field.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateOptions

public DateOptions()
Method Detail

getDefaultValue

public String getDefaultValue()
A value to use for the field if the field isn't specified for a document.

Constraints:
Length: 0 - 1024

Returns:
A value to use for the field if the field isn't specified for a document.

setDefaultValue

public void setDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.

Constraints:
Length: 0 - 1024

Parameters:
defaultValue - A value to use for the field if the field isn't specified for a document.

withDefaultValue

public DateOptions withDefaultValue(String defaultValue)
A value to use for the field if the field isn't specified for a document.

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

Constraints:
Length: 0 - 1024

Parameters:
defaultValue - A value to use for the field if the field isn't specified for a document.
Returns:
A reference to this updated object so that method calls can be chained together.

getSourceField

public String getSourceField()
A string that represents the name of an index field. Field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). The name "score" is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

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

Returns:
A string that represents the name of an index field. Field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). The name "score" is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

setSourceField

public void setSourceField(String sourceField)
A string that represents the name of an index field. Field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). The name "score" is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

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

Parameters:
sourceField - A string that represents the name of an index field. Field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). The name "score" is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

withSourceField

public DateOptions withSourceField(String sourceField)
A string that represents the name of an index field. Field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). The name "score" is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.

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:
sourceField - A string that represents the name of an index field. Field names begin with a letter and can contain the following characters: a-z (lowercase), 0-9, and _ (underscore). The name "score" is reserved and cannot be used as a field name. To reference a document's ID, you can use the name _id.
Returns:
A reference to this updated object so that method calls can be chained together.

isFacetEnabled

public Boolean isFacetEnabled()
Whether facet information can be returned for the field.

Returns:
Whether facet information can be returned for the field.

setFacetEnabled

public void setFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.

Parameters:
facetEnabled - Whether facet information can be returned for the field.

withFacetEnabled

public DateOptions withFacetEnabled(Boolean facetEnabled)
Whether facet information can be returned for the field.

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

Parameters:
facetEnabled - Whether facet information can be returned for the field.
Returns:
A reference to this updated object so that method calls can be chained together.

getFacetEnabled

public Boolean getFacetEnabled()
Whether facet information can be returned for the field.

Returns:
Whether facet information can be returned for the field.

isSearchEnabled

public Boolean isSearchEnabled()
Whether the contents of the field are searchable.

Returns:
Whether the contents of the field are searchable.

setSearchEnabled

public void setSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.

Parameters:
searchEnabled - Whether the contents of the field are searchable.

withSearchEnabled

public DateOptions withSearchEnabled(Boolean searchEnabled)
Whether the contents of the field are searchable.

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

Parameters:
searchEnabled - Whether the contents of the field are searchable.
Returns:
A reference to this updated object so that method calls can be chained together.

getSearchEnabled

public Boolean getSearchEnabled()
Whether the contents of the field are searchable.

Returns:
Whether the contents of the field are searchable.

isReturnEnabled

public Boolean isReturnEnabled()
Whether the contents of the field can be returned in the search results.

Returns:
Whether the contents of the field can be returned in the search results.

setReturnEnabled

public void setReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.

Parameters:
returnEnabled - Whether the contents of the field can be returned in the search results.

withReturnEnabled

public DateOptions withReturnEnabled(Boolean returnEnabled)
Whether the contents of the field can be returned in the search results.

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

Parameters:
returnEnabled - Whether the contents of the field can be returned in the search results.
Returns:
A reference to this updated object so that method calls can be chained together.

getReturnEnabled

public Boolean getReturnEnabled()
Whether the contents of the field can be returned in the search results.

Returns:
Whether the contents of the field can be returned in the search results.

isSortEnabled

public Boolean isSortEnabled()
Whether the field can be used to sort the search results.

Returns:
Whether the field can be used to sort the search results.

setSortEnabled

public void setSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.

Parameters:
sortEnabled - Whether the field can be used to sort the search results.

withSortEnabled

public DateOptions withSortEnabled(Boolean sortEnabled)
Whether the field can be used to sort the search results.

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

Parameters:
sortEnabled - Whether the field can be used to sort the search results.
Returns:
A reference to this updated object so that method calls can be chained together.

getSortEnabled

public Boolean getSortEnabled()
Whether the field can be used to sort the search results.

Returns:
Whether the field can be used to sort the search results.

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 © 2016. All rights reserved.