@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentRelevanceConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Overrides the document relevance properties of a custom index field.
Constructor and Description |
---|
DocumentRelevanceConfiguration() |
Modifier and Type | Method and Description |
---|---|
DocumentRelevanceConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the index field.
|
Relevance |
getRelevance()
Provides information for tuning the relevance of a field in a search.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The name of the index field.
|
void |
setRelevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search.
|
String |
toString()
Returns a string representation of this object.
|
DocumentRelevanceConfiguration |
withName(String name)
The name of the index field.
|
DocumentRelevanceConfiguration |
withRelevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search.
|
public void setName(String name)
The name of the index field.
name
- The name of the index field.public String getName()
The name of the index field.
public DocumentRelevanceConfiguration withName(String name)
The name of the index field.
name
- The name of the index field.public void setRelevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
relevance
- Provides information for tuning the relevance of a field in a search. When a query includes terms that
match the field, the results are given a boost in the response based on these tuning parameters.public Relevance getRelevance()
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
public DocumentRelevanceConfiguration withRelevance(Relevance relevance)
Provides information for tuning the relevance of a field in a search. When a query includes terms that match the field, the results are given a boost in the response based on these tuning parameters.
relevance
- Provides information for tuning the relevance of a field in a search. When a query includes terms that
match the field, the results are given a boost in the response based on these tuning parameters.public String toString()
toString
in class Object
Object.toString()
public DocumentRelevanceConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.