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

Summary information for a Amazon Kendra data source.

See Also:

* AWS * API Reference

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

The name of the data source.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the data source.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the data source.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the data source.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the data source.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the data source.

*/ inline DataSourceSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the data source.

*/ inline DataSourceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the data source.

*/ inline DataSourceSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The identifier for the data source.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier for the data source.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier for the data source.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier for the data source.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier for the data source.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier for the data source.

*/ inline DataSourceSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier for the data source.

*/ inline DataSourceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier for the data source.

*/ inline DataSourceSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The type of the data source.

*/ inline const DataSourceType& GetType() const{ return m_type; } /** *

The type of the data source.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the data source.

*/ inline void SetType(const DataSourceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the data source.

*/ inline void SetType(DataSourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the data source.

*/ inline DataSourceSummary& WithType(const DataSourceType& value) { SetType(value); return *this;} /** *

The type of the data source.

*/ inline DataSourceSummary& WithType(DataSourceType&& value) { SetType(std::move(value)); return *this;} /** *

The Unix timestamp when the data source connector was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The Unix timestamp when the data source connector was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The Unix timestamp when the data source connector was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The Unix timestamp when the data source connector was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The Unix timestamp when the data source connector was created.

*/ inline DataSourceSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The Unix timestamp when the data source connector was created.

*/ inline DataSourceSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The Unix timestamp when the data source connector was last updated.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The Unix timestamp when the data source connector was last updated.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The Unix timestamp when the data source connector was last updated.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The Unix timestamp when the data source connector was last updated.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The Unix timestamp when the data source connector was last updated.

*/ inline DataSourceSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The Unix timestamp when the data source connector was last updated.

*/ inline DataSourceSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *

The status of the data source. When the status is ACTIVE the * data source is ready to use.

*/ inline const DataSourceStatus& GetStatus() const{ return m_status; } /** *

The status of the data source. When the status is ACTIVE the * data source is ready to use.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the data source. When the status is ACTIVE the * data source is ready to use.

*/ inline void SetStatus(const DataSourceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the data source. When the status is ACTIVE the * data source is ready to use.

*/ inline void SetStatus(DataSourceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the data source. When the status is ACTIVE the * data source is ready to use.

*/ inline DataSourceSummary& WithStatus(const DataSourceStatus& value) { SetStatus(value); return *this;} /** *

The status of the data source. When the status is ACTIVE the * data source is ready to use.

*/ inline DataSourceSummary& WithStatus(DataSourceStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline const Aws::String& GetLanguageCode() const{ return m_languageCode; } /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; } /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(const Aws::String& value) { m_languageCodeHasBeenSet = true; m_languageCode = value; } /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(Aws::String&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::move(value); } /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline void SetLanguageCode(const char* value) { m_languageCodeHasBeenSet = true; m_languageCode.assign(value); } /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline DataSourceSummary& WithLanguageCode(const Aws::String& value) { SetLanguageCode(value); return *this;} /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline DataSourceSummary& WithLanguageCode(Aws::String&& value) { SetLanguageCode(std::move(value)); return *this;} /** *

The code for a language. This shows a supported language for all documents in * the data source. English is supported by default. For more information on * supported languages, including their codes, see Adding * documents in languages other than English.

*/ inline DataSourceSummary& WithLanguageCode(const char* value) { SetLanguageCode(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; DataSourceType m_type; bool m_typeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; DataSourceStatus m_status; bool m_statusHasBeenSet = false; Aws::String m_languageCode; bool m_languageCodeHasBeenSet = false; }; } // namespace Model } // namespace kendra } // namespace Aws