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

A summary of information about a data set.

See Also:

AWS * API Reference

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

The name of the data set.

*/ inline const Aws::String& GetDatasetName() const{ return m_datasetName; } /** *

The name of the data set.

*/ inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; } /** *

The name of the data set.

*/ inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; } /** *

The name of the data set.

*/ inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); } /** *

The name of the data set.

*/ inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); } /** *

The name of the data set.

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

The name of the data set.

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

The name of the data set.

*/ inline DatasetSummary& WithDatasetName(const char* value) { SetDatasetName(value); return *this;} /** *

The status of the data set.

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

The status of the data set.

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

The status of the data set.

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

The status of the data set.

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

The status of the data set.

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

The status of the data set.

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

The time the data set was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

The time the data set was created.

*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *

The time the data set was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *

The time the data set was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *

The time the data set was created.

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

The time the data set was created.

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

The last time the data set was updated.

*/ inline const Aws::Utils::DateTime& GetLastUpdateTime() const{ return m_lastUpdateTime; } /** *

The last time the data set was updated.

*/ inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; } /** *

The last time the data set was updated.

*/ inline void SetLastUpdateTime(const Aws::Utils::DateTime& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; } /** *

The last time the data set was updated.

*/ inline void SetLastUpdateTime(Aws::Utils::DateTime&& value) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = std::move(value); } /** *

The last time the data set was updated.

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

The last time the data set was updated.

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

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline const Aws::Vector& GetTriggers() const{ return m_triggers; } /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; } /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline void SetTriggers(const Aws::Vector& value) { m_triggersHasBeenSet = true; m_triggers = value; } /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline void SetTriggers(Aws::Vector&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); } /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline DatasetSummary& WithTriggers(const Aws::Vector& value) { SetTriggers(value); return *this;} /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline DatasetSummary& WithTriggers(Aws::Vector&& value) { SetTriggers(std::move(value)); return *this;} /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline DatasetSummary& AddTriggers(const DatasetTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; } /** *

A list of triggers. A trigger causes data set content to be populated at a * specified time interval or when another data set is populated. The list of * triggers can be empty or contain up to five DataSetTrigger objects

*/ inline DatasetSummary& AddTriggers(DatasetTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; } /** *

A list of "DataActionSummary" objects.

*/ inline const Aws::Vector& GetActions() const{ return m_actions; } /** *

A list of "DataActionSummary" objects.

*/ inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; } /** *

A list of "DataActionSummary" objects.

*/ inline void SetActions(const Aws::Vector& value) { m_actionsHasBeenSet = true; m_actions = value; } /** *

A list of "DataActionSummary" objects.

*/ inline void SetActions(Aws::Vector&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); } /** *

A list of "DataActionSummary" objects.

*/ inline DatasetSummary& WithActions(const Aws::Vector& value) { SetActions(value); return *this;} /** *

A list of "DataActionSummary" objects.

*/ inline DatasetSummary& WithActions(Aws::Vector&& value) { SetActions(std::move(value)); return *this;} /** *

A list of "DataActionSummary" objects.

*/ inline DatasetSummary& AddActions(const DatasetActionSummary& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; } /** *

A list of "DataActionSummary" objects.

*/ inline DatasetSummary& AddActions(DatasetActionSummary&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } private: Aws::String m_datasetName; bool m_datasetNameHasBeenSet; DatasetStatus m_status; bool m_statusHasBeenSet; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet; Aws::Vector m_triggers; bool m_triggersHasBeenSet; Aws::Vector m_actions; bool m_actionsHasBeenSet; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws