@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DocumentIdOptions extends Object implements Serializable, Cloneable, StructuredPojo
Indicates the method for setting up document ID. The supported methods are Firehose generated document ID and OpenSearch Service generated document ID.
Constructor and Description |
---|
DocumentIdOptions() |
Modifier and Type | Method and Description |
---|---|
DocumentIdOptions |
clone() |
boolean |
equals(Object obj) |
String |
getDefaultDocumentIdFormat()
When the
FIREHOSE_DEFAULT option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDefaultDocumentIdFormat(String defaultDocumentIdFormat)
When the
FIREHOSE_DEFAULT option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. |
String |
toString()
Returns a string representation of this object.
|
DocumentIdOptions |
withDefaultDocumentIdFormat(DefaultDocumentIdFormat defaultDocumentIdFormat)
When the
FIREHOSE_DEFAULT option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. |
DocumentIdOptions |
withDefaultDocumentIdFormat(String defaultDocumentIdFormat)
When the
FIREHOSE_DEFAULT option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. |
public void setDefaultDocumentIdFormat(String defaultDocumentIdFormat)
When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. The generated document ID is stable across multiple delivery attempts,
which helps prevent the same record from being indexed multiple times with different document IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the requests
it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to generate document
IDs. In case of multiple delivery attempts, this may cause the same record to be indexed more than once with
different document IDs. This option enables write-heavy operations, such as the ingestion of logs and
observability data, to consume less resources in the Amazon OpenSearch Service domain, resulting in improved
performance.
defaultDocumentIdFormat
- When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each
record based on a unique internal identifier. The generated document ID is stable across multiple delivery
attempts, which helps prevent the same record from being indexed multiple times with different document
IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the
requests it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to
generate document IDs. In case of multiple delivery attempts, this may cause the same record to be indexed
more than once with different document IDs. This option enables write-heavy operations, such as the
ingestion of logs and observability data, to consume less resources in the Amazon OpenSearch Service
domain, resulting in improved performance.
DefaultDocumentIdFormat
public String getDefaultDocumentIdFormat()
When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. The generated document ID is stable across multiple delivery attempts,
which helps prevent the same record from being indexed multiple times with different document IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the requests
it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to generate document
IDs. In case of multiple delivery attempts, this may cause the same record to be indexed more than once with
different document IDs. This option enables write-heavy operations, such as the ingestion of logs and
observability data, to consume less resources in the Amazon OpenSearch Service domain, resulting in improved
performance.
FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each
record based on a unique internal identifier. The generated document ID is stable across multiple
delivery attempts, which helps prevent the same record from being indexed multiple times with different
document IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the
requests it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to
generate document IDs. In case of multiple delivery attempts, this may cause the same record to be
indexed more than once with different document IDs. This option enables write-heavy operations, such as
the ingestion of logs and observability data, to consume less resources in the Amazon OpenSearch Service
domain, resulting in improved performance.
DefaultDocumentIdFormat
public DocumentIdOptions withDefaultDocumentIdFormat(String defaultDocumentIdFormat)
When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. The generated document ID is stable across multiple delivery attempts,
which helps prevent the same record from being indexed multiple times with different document IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the requests
it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to generate document
IDs. In case of multiple delivery attempts, this may cause the same record to be indexed more than once with
different document IDs. This option enables write-heavy operations, such as the ingestion of logs and
observability data, to consume less resources in the Amazon OpenSearch Service domain, resulting in improved
performance.
defaultDocumentIdFormat
- When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each
record based on a unique internal identifier. The generated document ID is stable across multiple delivery
attempts, which helps prevent the same record from being indexed multiple times with different document
IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the
requests it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to
generate document IDs. In case of multiple delivery attempts, this may cause the same record to be indexed
more than once with different document IDs. This option enables write-heavy operations, such as the
ingestion of logs and observability data, to consume less resources in the Amazon OpenSearch Service
domain, resulting in improved performance.
DefaultDocumentIdFormat
public DocumentIdOptions withDefaultDocumentIdFormat(DefaultDocumentIdFormat defaultDocumentIdFormat)
When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each record
based on a unique internal identifier. The generated document ID is stable across multiple delivery attempts,
which helps prevent the same record from being indexed multiple times with different document IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the requests
it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to generate document
IDs. In case of multiple delivery attempts, this may cause the same record to be indexed more than once with
different document IDs. This option enables write-heavy operations, such as the ingestion of logs and
observability data, to consume less resources in the Amazon OpenSearch Service domain, resulting in improved
performance.
defaultDocumentIdFormat
- When the FIREHOSE_DEFAULT
option is chosen, Firehose generates a unique document ID for each
record based on a unique internal identifier. The generated document ID is stable across multiple delivery
attempts, which helps prevent the same record from being indexed multiple times with different document
IDs.
When the NO_DOCUMENT_ID
option is chosen, Firehose does not include any document IDs in the
requests it sends to the Amazon OpenSearch Service. This causes the Amazon OpenSearch Service domain to
generate document IDs. In case of multiple delivery attempts, this may cause the same record to be indexed
more than once with different document IDs. This option enables write-heavy operations, such as the
ingestion of logs and observability data, to consume less resources in the Amazon OpenSearch Service
domain, resulting in improved performance.
DefaultDocumentIdFormat
public String toString()
toString
in class Object
Object.toString()
public DocumentIdOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.