/** * 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 namespace Aws { namespace IoTAnalytics { namespace Model { /** */ class UpdateDatasetRequest : public IoTAnalyticsRequest { public: AWS_IOTANALYTICS_API UpdateDatasetRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateDataset"; } AWS_IOTANALYTICS_API Aws::String SerializePayload() const override; /** *

The name of the dataset to update.

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

The name of the dataset to update.

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

The name of the dataset to update.

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

The name of the dataset to update.

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

The name of the dataset to update.

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

The name of the dataset to update.

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

The name of the dataset to update.

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

The name of the dataset to update.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetAction objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

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

A list of DatasetTrigger objects. The list can be empty or can * contain up to five DatasetTrigger objects.

*/ inline UpdateDatasetRequest& 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 UpdateDatasetRequest& WithContentDeliveryRules(const Aws::Vector& value) { SetContentDeliveryRules(value); return *this;} /** *

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

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

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

*/ inline UpdateDatasetRequest& 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 UpdateDatasetRequest& AddContentDeliveryRules(DatasetContentDeliveryRule&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(std::move(value)); return *this; } /** *

How long, in days, dataset contents are kept for the dataset.

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

How long, in days, dataset contents are kept for the dataset.

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

How long, in days, dataset contents are kept for the dataset.

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

How long, in days, dataset contents are kept for the dataset.

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

How long, in days, dataset contents are kept for the dataset.

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

How long, in days, dataset contents are kept for the dataset.

*/ inline UpdateDatasetRequest& 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 UpdateDatasetRequest& 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 UpdateDatasetRequest& 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 UpdateDatasetRequest& 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 UpdateDatasetRequest& 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 UpdateDatasetRequest& 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 UpdateDatasetRequest& AddLateDataRules(LateDataRule&& value) { m_lateDataRulesHasBeenSet = true; m_lateDataRules.push_back(std::move(value)); return *this; } private: Aws::String m_datasetName; bool m_datasetNameHasBeenSet = 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; 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