330 lines
14 KiB
C
330 lines
14 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iotanalytics/IoTAnalytics_EXPORTS.h>
|
|||
|
|
#include <aws/iotanalytics/IoTAnalyticsRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/iotanalytics/model/RetentionPeriod.h>
|
|||
|
|
#include <aws/iotanalytics/model/VersioningConfiguration.h>
|
|||
|
|
#include <aws/iotanalytics/model/DatasetAction.h>
|
|||
|
|
#include <aws/iotanalytics/model/DatasetTrigger.h>
|
|||
|
|
#include <aws/iotanalytics/model/DatasetContentDeliveryRule.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace IoTAnalytics
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_IOTANALYTICS_API UpdateDatasetRequest : public IoTAnalyticsRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
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::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDatasetName() const{ return m_datasetName; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDatasetName(const Aws::String& value) { m_datasetNameHasBeenSet = true; m_datasetName = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDatasetName(Aws::String&& value) { m_datasetNameHasBeenSet = true; m_datasetName = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDatasetName(const char* value) { m_datasetNameHasBeenSet = true; m_datasetName.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithDatasetName(const Aws::String& value) { SetDatasetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithDatasetName(Aws::String&& value) { SetDatasetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the data set to update.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithDatasetName(const char* value) { SetDatasetName(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<DatasetAction>& GetActions() const{ return m_actions; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetActions(const Aws::Vector<DatasetAction>& value) { m_actionsHasBeenSet = true; m_actions = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetActions(Aws::Vector<DatasetAction>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithActions(const Aws::Vector<DatasetAction>& value) { SetActions(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithActions(Aws::Vector<DatasetAction>&& value) { SetActions(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& AddActions(const DatasetAction& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetAction" objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& AddActions(DatasetAction&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<DatasetTrigger>& GetTriggers() const{ return m_triggers; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TriggersHasBeenSet() const { return m_triggersHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTriggers(const Aws::Vector<DatasetTrigger>& value) { m_triggersHasBeenSet = true; m_triggers = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTriggers(Aws::Vector<DatasetTrigger>&& value) { m_triggersHasBeenSet = true; m_triggers = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithTriggers(const Aws::Vector<DatasetTrigger>& value) { SetTriggers(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithTriggers(Aws::Vector<DatasetTrigger>&& value) { SetTriggers(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& AddTriggers(const DatasetTrigger& value) { m_triggersHasBeenSet = true; m_triggers.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of "DatasetTrigger" objects. The list can be empty or can contain up
|
|||
|
|
* to five <b>DataSetTrigger</b> objects.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& AddTriggers(DatasetTrigger&& value) { m_triggersHasBeenSet = true; m_triggers.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<DatasetContentDeliveryRule>& GetContentDeliveryRules() const{ return m_contentDeliveryRules; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ContentDeliveryRulesHasBeenSet() const { return m_contentDeliveryRulesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContentDeliveryRules(const Aws::Vector<DatasetContentDeliveryRule>& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetContentDeliveryRules(Aws::Vector<DatasetContentDeliveryRule>&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithContentDeliveryRules(const Aws::Vector<DatasetContentDeliveryRule>& value) { SetContentDeliveryRules(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithContentDeliveryRules(Aws::Vector<DatasetContentDeliveryRule>&& value) { SetContentDeliveryRules(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& AddContentDeliveryRules(const DatasetContentDeliveryRule& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>When data set contents are created they are delivered to destinations
|
|||
|
|
* specified here.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& AddContentDeliveryRules(DatasetContentDeliveryRule&& value) { m_contentDeliveryRulesHasBeenSet = true; m_contentDeliveryRules.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, data set contents are kept for the data set.</p>
|
|||
|
|
*/
|
|||
|
|
inline const RetentionPeriod& GetRetentionPeriod() const{ return m_retentionPeriod; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, data set contents are kept for the data set.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool RetentionPeriodHasBeenSet() const { return m_retentionPeriodHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, data set contents are kept for the data set.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRetentionPeriod(const RetentionPeriod& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, data set contents are kept for the data set.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetRetentionPeriod(RetentionPeriod&& value) { m_retentionPeriodHasBeenSet = true; m_retentionPeriod = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, data set contents are kept for the data set.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithRetentionPeriod(const RetentionPeriod& value) { SetRetentionPeriod(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>How long, in days, data set contents are kept for the data set.</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithRetentionPeriod(RetentionPeriod&& value) { SetRetentionPeriod(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] How many versions of data set 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
|
|||
|
|
* https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)</p>
|
|||
|
|
*/
|
|||
|
|
inline const VersioningConfiguration& GetVersioningConfiguration() const{ return m_versioningConfiguration; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] How many versions of data set 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
|
|||
|
|
* https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)</p>
|
|||
|
|
*/
|
|||
|
|
inline bool VersioningConfigurationHasBeenSet() const { return m_versioningConfigurationHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] How many versions of data set 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
|
|||
|
|
* https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVersioningConfiguration(const VersioningConfiguration& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] How many versions of data set 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
|
|||
|
|
* https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetVersioningConfiguration(VersioningConfiguration&& value) { m_versioningConfigurationHasBeenSet = true; m_versioningConfiguration = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] How many versions of data set 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
|
|||
|
|
* https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithVersioningConfiguration(const VersioningConfiguration& value) { SetVersioningConfiguration(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>[Optional] How many versions of data set 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
|
|||
|
|
* https://docs.aws.amazon.com/iotanalytics/latest/userguide/getting-started.html#aws-iot-analytics-dataset-versions)</p>
|
|||
|
|
*/
|
|||
|
|
inline UpdateDatasetRequest& WithVersioningConfiguration(VersioningConfiguration&& value) { SetVersioningConfiguration(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_datasetName;
|
|||
|
|
bool m_datasetNameHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<DatasetAction> m_actions;
|
|||
|
|
bool m_actionsHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<DatasetTrigger> m_triggers;
|
|||
|
|
bool m_triggersHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<DatasetContentDeliveryRule> m_contentDeliveryRules;
|
|||
|
|
bool m_contentDeliveryRulesHasBeenSet;
|
|||
|
|
|
|||
|
|
RetentionPeriod m_retentionPeriod;
|
|||
|
|
bool m_retentionPeriodHasBeenSet;
|
|||
|
|
|
|||
|
|
VersioningConfiguration m_versioningConfiguration;
|
|||
|
|
bool m_versioningConfigurationHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoTAnalytics
|
|||
|
|
} // namespace Aws
|