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

Provides a summary of the properties of a dataset. For a complete listing, * call the DescribeDataset * API.

See Also:

AWS * API Reference

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

The name of the dataset.

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

The name of the dataset.

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

The name of the dataset.

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

The name of the dataset.

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

The name of the dataset.

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

The name of the dataset.

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

The name of the dataset.

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

The name of the dataset.

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

The Amazon Resource Name (ARN) of the dataset.

*/ inline const Aws::String& GetDatasetArn() const{ return m_datasetArn; } /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline bool DatasetArnHasBeenSet() const { return m_datasetArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline void SetDatasetArn(const Aws::String& value) { m_datasetArnHasBeenSet = true; m_datasetArn = value; } /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline void SetDatasetArn(Aws::String&& value) { m_datasetArnHasBeenSet = true; m_datasetArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline void SetDatasetArn(const char* value) { m_datasetArnHasBeenSet = true; m_datasetArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline DatasetSummary& WithDatasetArn(const Aws::String& value) { SetDatasetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline DatasetSummary& WithDatasetArn(Aws::String&& value) { SetDatasetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the dataset.

*/ inline DatasetSummary& WithDatasetArn(const char* value) { SetDatasetArn(value); return *this;} /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline const Aws::String& GetDatasetType() const{ return m_datasetType; } /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline bool DatasetTypeHasBeenSet() const { return m_datasetTypeHasBeenSet; } /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline void SetDatasetType(const Aws::String& value) { m_datasetTypeHasBeenSet = true; m_datasetType = value; } /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline void SetDatasetType(Aws::String&& value) { m_datasetTypeHasBeenSet = true; m_datasetType = std::move(value); } /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline void SetDatasetType(const char* value) { m_datasetTypeHasBeenSet = true; m_datasetType.assign(value); } /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline DatasetSummary& WithDatasetType(const Aws::String& value) { SetDatasetType(value); return *this;} /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline DatasetSummary& WithDatasetType(Aws::String&& value) { SetDatasetType(std::move(value)); return *this;} /** *

The dataset type. One of the following values:

  • *

    Interactions

  • Items

  • Users

  • *

    Event-Interactions

*/ inline DatasetSummary& WithDatasetType(const char* value) { SetDatasetType(value); return *this;} /** *

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

  • *
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

  • *
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

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

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

  • *
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

  • *
*/ inline DatasetSummary& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

  • *
*/ inline DatasetSummary& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the dataset.

A dataset can be in one of the following * states:

  • CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- * CREATE FAILED

  • DELETE PENDING > DELETE IN_PROGRESS

  • *
*/ inline DatasetSummary& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

The date and time (in Unix time) that the dataset was created.

*/ inline const Aws::Utils::DateTime& GetCreationDateTime() const{ return m_creationDateTime; } /** *

The date and time (in Unix time) that the dataset was created.

*/ inline bool CreationDateTimeHasBeenSet() const { return m_creationDateTimeHasBeenSet; } /** *

The date and time (in Unix time) that the dataset was created.

*/ inline void SetCreationDateTime(const Aws::Utils::DateTime& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = value; } /** *

The date and time (in Unix time) that the dataset was created.

*/ inline void SetCreationDateTime(Aws::Utils::DateTime&& value) { m_creationDateTimeHasBeenSet = true; m_creationDateTime = std::move(value); } /** *

The date and time (in Unix time) that the dataset was created.

*/ inline DatasetSummary& WithCreationDateTime(const Aws::Utils::DateTime& value) { SetCreationDateTime(value); return *this;} /** *

The date and time (in Unix time) that the dataset was created.

*/ inline DatasetSummary& WithCreationDateTime(Aws::Utils::DateTime&& value) { SetCreationDateTime(std::move(value)); return *this;} /** *

The date and time (in Unix time) that the dataset was last updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDateTime() const{ return m_lastUpdatedDateTime; } /** *

The date and time (in Unix time) that the dataset was last updated.

*/ inline bool LastUpdatedDateTimeHasBeenSet() const { return m_lastUpdatedDateTimeHasBeenSet; } /** *

The date and time (in Unix time) that the dataset was last updated.

*/ inline void SetLastUpdatedDateTime(const Aws::Utils::DateTime& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = value; } /** *

The date and time (in Unix time) that the dataset was last updated.

*/ inline void SetLastUpdatedDateTime(Aws::Utils::DateTime&& value) { m_lastUpdatedDateTimeHasBeenSet = true; m_lastUpdatedDateTime = std::move(value); } /** *

The date and time (in Unix time) that the dataset was last updated.

*/ inline DatasetSummary& WithLastUpdatedDateTime(const Aws::Utils::DateTime& value) { SetLastUpdatedDateTime(value); return *this;} /** *

The date and time (in Unix time) that the dataset was last updated.

*/ inline DatasetSummary& WithLastUpdatedDateTime(Aws::Utils::DateTime&& value) { SetLastUpdatedDateTime(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_datasetArn; bool m_datasetArnHasBeenSet = false; Aws::String m_datasetType; bool m_datasetTypeHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationDateTime; bool m_creationDateTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDateTime; bool m_lastUpdatedDateTimeHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws