/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace kendra { namespace Model { /** *

Identifies a document for which to retrieve status information

See * Also:

AWS * API Reference

*/ class DocumentInfo { public: AWS_KENDRA_API DocumentInfo(); AWS_KENDRA_API DocumentInfo(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API DocumentInfo& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The identifier of the document.

*/ inline const Aws::String& GetDocumentId() const{ return m_documentId; } /** *

The identifier of the document.

*/ inline bool DocumentIdHasBeenSet() const { return m_documentIdHasBeenSet; } /** *

The identifier of the document.

*/ inline void SetDocumentId(const Aws::String& value) { m_documentIdHasBeenSet = true; m_documentId = value; } /** *

The identifier of the document.

*/ inline void SetDocumentId(Aws::String&& value) { m_documentIdHasBeenSet = true; m_documentId = std::move(value); } /** *

The identifier of the document.

*/ inline void SetDocumentId(const char* value) { m_documentIdHasBeenSet = true; m_documentId.assign(value); } /** *

The identifier of the document.

*/ inline DocumentInfo& WithDocumentId(const Aws::String& value) { SetDocumentId(value); return *this;} /** *

The identifier of the document.

*/ inline DocumentInfo& WithDocumentId(Aws::String&& value) { SetDocumentId(std::move(value)); return *this;} /** *

The identifier of the document.

*/ inline DocumentInfo& WithDocumentId(const char* value) { SetDocumentId(value); return *this;} /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline const Aws::Vector& GetAttributes() const{ return m_attributes; } /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline void SetAttributes(const Aws::Vector& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline void SetAttributes(Aws::Vector&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline DocumentInfo& WithAttributes(const Aws::Vector& value) { SetAttributes(value); return *this;} /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline DocumentInfo& WithAttributes(Aws::Vector&& value) { SetAttributes(std::move(value)); return *this;} /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline DocumentInfo& AddAttributes(const DocumentAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; } /** *

Attributes that identify a specific version of a document to check.

*

The only valid attributes are:

  • version

  • *

    datasourceId

  • jobExecutionId

The * attributes follow these rules:

  • dataSourceId and * jobExecutionId must be used together.

  • * version is ignored if dataSourceId and * jobExecutionId are not provided.

  • If * dataSourceId and jobExecutionId are provided, but * version is not, the version defaults to "0".

*/ inline DocumentInfo& AddAttributes(DocumentAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; } private: Aws::String m_documentId; bool m_documentIdHasBeenSet = false; Aws::Vector m_attributes; bool m_attributesHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws