@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class OpensearchConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Contains details about the configuration of the Amazon OpenSearch Service database used for the
AMAZON.QnAIntent
.
Constructor and Description |
---|
OpensearchConfiguration() |
Modifier and Type | Method and Description |
---|---|
OpensearchConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getDomainEndpoint()
The endpoint of the Amazon OpenSearch Service domain.
|
Boolean |
getExactResponse()
Specifies whether to return an exact response or to return an answer generated by the model using the fields you
specify from the database.
|
ExactResponseFields |
getExactResponseFields()
Contains the names of the fields used for an exact response to the user.
|
List<String> |
getIncludeFields()
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the
query.
|
String |
getIndexName()
The name of the Amazon OpenSearch Service index.
|
int |
hashCode() |
Boolean |
isExactResponse()
Specifies whether to return an exact response or to return an answer generated by the model using the fields you
specify from the database.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDomainEndpoint(String domainEndpoint)
The endpoint of the Amazon OpenSearch Service domain.
|
void |
setExactResponse(Boolean exactResponse)
Specifies whether to return an exact response or to return an answer generated by the model using the fields you
specify from the database.
|
void |
setExactResponseFields(ExactResponseFields exactResponseFields)
Contains the names of the fields used for an exact response to the user.
|
void |
setIncludeFields(Collection<String> includeFields)
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the
query.
|
void |
setIndexName(String indexName)
The name of the Amazon OpenSearch Service index.
|
String |
toString()
Returns a string representation of this object.
|
OpensearchConfiguration |
withDomainEndpoint(String domainEndpoint)
The endpoint of the Amazon OpenSearch Service domain.
|
OpensearchConfiguration |
withExactResponse(Boolean exactResponse)
Specifies whether to return an exact response or to return an answer generated by the model using the fields you
specify from the database.
|
OpensearchConfiguration |
withExactResponseFields(ExactResponseFields exactResponseFields)
Contains the names of the fields used for an exact response to the user.
|
OpensearchConfiguration |
withIncludeFields(Collection<String> includeFields)
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the
query.
|
OpensearchConfiguration |
withIncludeFields(String... includeFields)
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the
query.
|
OpensearchConfiguration |
withIndexName(String indexName)
The name of the Amazon OpenSearch Service index.
|
public void setDomainEndpoint(String domainEndpoint)
The endpoint of the Amazon OpenSearch Service domain.
domainEndpoint
- The endpoint of the Amazon OpenSearch Service domain.public String getDomainEndpoint()
The endpoint of the Amazon OpenSearch Service domain.
public OpensearchConfiguration withDomainEndpoint(String domainEndpoint)
The endpoint of the Amazon OpenSearch Service domain.
domainEndpoint
- The endpoint of the Amazon OpenSearch Service domain.public void setIndexName(String indexName)
The name of the Amazon OpenSearch Service index.
indexName
- The name of the Amazon OpenSearch Service index.public String getIndexName()
The name of the Amazon OpenSearch Service index.
public OpensearchConfiguration withIndexName(String indexName)
The name of the Amazon OpenSearch Service index.
indexName
- The name of the Amazon OpenSearch Service index.public void setExactResponse(Boolean exactResponse)
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
exactResponse
- Specifies whether to return an exact response or to return an answer generated by the model using the
fields you specify from the database.public Boolean getExactResponse()
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
public OpensearchConfiguration withExactResponse(Boolean exactResponse)
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
exactResponse
- Specifies whether to return an exact response or to return an answer generated by the model using the
fields you specify from the database.public Boolean isExactResponse()
Specifies whether to return an exact response or to return an answer generated by the model using the fields you specify from the database.
public void setExactResponseFields(ExactResponseFields exactResponseFields)
Contains the names of the fields used for an exact response to the user.
exactResponseFields
- Contains the names of the fields used for an exact response to the user.public ExactResponseFields getExactResponseFields()
Contains the names of the fields used for an exact response to the user.
public OpensearchConfiguration withExactResponseFields(ExactResponseFields exactResponseFields)
Contains the names of the fields used for an exact response to the user.
exactResponseFields
- Contains the names of the fields used for an exact response to the user.public List<String> getIncludeFields()
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
public void setIncludeFields(Collection<String> includeFields)
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
includeFields
- Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer
to the query.public OpensearchConfiguration withIncludeFields(String... includeFields)
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
NOTE: This method appends the values to the existing list (if any). Use
setIncludeFields(java.util.Collection)
or withIncludeFields(java.util.Collection)
if you want
to override the existing values.
includeFields
- Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer
to the query.public OpensearchConfiguration withIncludeFields(Collection<String> includeFields)
Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer to the query.
includeFields
- Contains a list of fields from the Amazon OpenSearch Service that the model can use to generate the answer
to the query.public String toString()
toString
in class Object
Object.toString()
public OpensearchConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.