/** * 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 #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace IoTAnalytics { namespace Model { /** *

Information about a dataset.

See Also:

AWS * API Reference

*/ class Dataset { public: AWS_IOTANALYTICS_API Dataset(); AWS_IOTANALYTICS_API Dataset(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_API Dataset& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_IOTANALYTICS_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 Dataset& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the dataset.

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

The name of the dataset.

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

The ARN of the dataset.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the dataset.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the dataset.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the dataset.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the dataset.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the dataset.

*/ inline Dataset& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the dataset.

*/ inline Dataset& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the dataset.

*/ inline Dataset& WithArn(const char* value) { SetArn(value); return *this;} /** *

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

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

The DatasetAction objects that automatically create the dataset * contents.

*/ inline Dataset& AddActions(DatasetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; } /** *

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

The DatasetTrigger objects that specify when the dataset is * automatically updated.

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

When dataset contents are created they are delivered to destinations * specified here.

*/ inline const Aws::Vector& GetContentDeliveryRules() const{ return m_contentDeliveryRules; } /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline bool ContentDeliveryRulesHasBeenSet() const { return m_contentDeliveryRulesHasBeenSet; } /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline void SetContentDeliveryRules(const Aws::Vector& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = value; } /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline void SetContentDeliveryRules(Aws::Vector&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = std::move(value); } /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline Dataset& WithContentDeliveryRules(const Aws::Vector& value) { SetContentDeliveryRules(value); return *this;} /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline Dataset& WithContentDeliveryRules(Aws::Vector&& value) { SetContentDeliveryRules(std::move(value)); return *this;} /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline Dataset& AddContentDeliveryRules(const DatasetContentDeliveryRule& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(value); return *this; } /** *

When dataset contents are created they are delivered to destinations * specified here.

*/ inline Dataset& AddContentDeliveryRules(DatasetContentDeliveryRule&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(std::move(value)); return *this; } /** *

The status of the dataset.

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

The status of the dataset.

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

The status of the dataset.

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

The status of the dataset.

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

The status of the dataset.

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

The status of the dataset.

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

When the dataset was created.

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

When the dataset was created.

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

When the dataset was created.

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

When the dataset was created.

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

When the dataset was created.

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

When the dataset was created.

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

The last time the dataset was updated.

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

The last time the dataset was updated.

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

The last time the dataset was updated.

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

The last time the dataset was updated.

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

The last time the dataset was updated.

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

The last time the dataset was updated.

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

Optional. How long, in days, message data is kept for the dataset.

*/ inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; } /** *

Optional. How long, in days, message data is kept for the dataset.

*/ inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; } /** *

Optional. How long, in days, message data is kept for the dataset.

*/ inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; } /** *

Optional. How long, in days, message data is kept for the dataset.

*/ inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); } /** *

Optional. How long, in days, message data is kept for the dataset.

*/ inline Dataset& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;} /** *

Optional. How long, in days, message data is kept for the dataset.

*/ inline Dataset& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;} /** *

Optional. How many versions of dataset contents are kept. If not specified or * set to null, only the latest version plus the latest succeeded version (if they * are different) are kept for the time period specified by the * retentionPeriod parameter. For more information, see * Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics * User Guide.

*/ inline const VersioningConfiguration& GetVersioningConfiguration() const{ return m_versioningConfiguration; } /** *

Optional. How many versions of dataset contents are kept. If not specified or * set to null, only the latest version plus the latest succeeded version (if they * are different) are kept for the time period specified by the * retentionPeriod parameter. For more information, see * Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics * User Guide.

*/ inline bool VersioningConfigurationHasBeenSet() const { return m_versioningConfigurationHasBeenSet; } /** *

Optional. How many versions of dataset contents are kept. If not specified or * set to null, only the latest version plus the latest succeeded version (if they * are different) are kept for the time period specified by the * retentionPeriod parameter. For more information, see * Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics * User Guide.

*/ inline void SetVersioningConfiguration(const VersioningConfiguration& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = value; } /** *

Optional. How many versions of dataset contents are kept. If not specified or * set to null, only the latest version plus the latest succeeded version (if they * are different) are kept for the time period specified by the * retentionPeriod parameter. For more information, see * Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics * User Guide.

*/ inline void SetVersioningConfiguration(VersioningConfiguration&& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = std::move(value); } /** *

Optional. How many versions of dataset contents are kept. If not specified or * set to null, only the latest version plus the latest succeeded version (if they * are different) are kept for the time period specified by the * retentionPeriod parameter. For more information, see * Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics * User Guide.

*/ inline Dataset& WithVersioningConfiguration(const VersioningConfiguration& value) { SetVersioningConfiguration(value); return *this;} /** *

Optional. How many versions of dataset contents are kept. If not specified or * set to null, only the latest version plus the latest succeeded version (if they * are different) are kept for the time period specified by the * retentionPeriod parameter. For more information, see * Keeping Multiple Versions of IoT Analytics datasets in the IoT Analytics * User Guide.

*/ inline Dataset& WithVersioningConfiguration(VersioningConfiguration&& value) { SetVersioningConfiguration(std::move(value)); return *this;} /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline const Aws::Vector& GetLateDataRules() const{ return m_lateDataRules; } /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline bool LateDataRulesHasBeenSet() const { return m_lateDataRulesHasBeenSet; } /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline void SetLateDataRules(const Aws::Vector& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules = value; } /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline void SetLateDataRules(Aws::Vector&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules = std::move(value); } /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline Dataset& WithLateDataRules(const Aws::Vector& value) { SetLateDataRules(value); return *this;} /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline Dataset& WithLateDataRules(Aws::Vector&& value) { SetLateDataRules(std::move(value)); return *this;} /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline Dataset& AddLateDataRules(const LateDataRule& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(value); return *this; } /** *

A list of data rules that send notifications to CloudWatch, when data arrives * late. To specify lateDataRules, the dataset must use a DeltaTimer * filter.

*/ inline Dataset& AddLateDataRules(LateDataRule&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Vector m_actions; bool m_actionsHasBeenSet = false; Aws::Vector m_triggers; bool m_triggersHasBeenSet = false; Aws::Vector m_contentDeliveryRules; bool m_contentDeliveryRulesHasBeenSet = false; DatasetStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdateTime; bool m_lastUpdateTimeHasBeenSet = false; RetentionPeriod m_retentionPeriod; bool m_retentionPeriodHasBeenSet = false; VersioningConfiguration m_versioningConfiguration; bool m_versioningConfigurationHasBeenSet = false; Aws::Vector m_lateDataRules; bool m_lateDataRulesHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws