/** * 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 IoTAnalytics { namespace Model { /** *

The DatasetTrigger that specifies when the dataset is * automatically updated.

See Also:

AWS * API Reference

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

The Schedule when the trigger is initiated.

*/ inline const Schedule& GetSchedule() const{ return m_schedule; } /** *

The Schedule when the trigger is initiated.

*/ inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; } /** *

The Schedule when the trigger is initiated.

*/ inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; } /** *

The Schedule when the trigger is initiated.

*/ inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); } /** *

The Schedule when the trigger is initiated.

*/ inline DatasetTrigger& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;} /** *

The Schedule when the trigger is initiated.

*/ inline DatasetTrigger& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;} /** *

The dataset whose content creation triggers the creation of this dataset's * contents.

*/ inline const TriggeringDataset& GetDataset() const{ return m_dataset; } /** *

The dataset whose content creation triggers the creation of this dataset's * contents.

*/ inline bool DatasetHasBeenSet() const { return m_datasetHasBeenSet; } /** *

The dataset whose content creation triggers the creation of this dataset's * contents.

*/ inline void SetDataset(const TriggeringDataset& value) { m_datasetHasBeenSet = true; m_dataset = value; } /** *

The dataset whose content creation triggers the creation of this dataset's * contents.

*/ inline void SetDataset(TriggeringDataset&& value) { m_datasetHasBeenSet = true; m_dataset = std::move(value); } /** *

The dataset whose content creation triggers the creation of this dataset's * contents.

*/ inline DatasetTrigger& WithDataset(const TriggeringDataset& value) { SetDataset(value); return *this;} /** *

The dataset whose content creation triggers the creation of this dataset's * contents.

*/ inline DatasetTrigger& WithDataset(TriggeringDataset&& value) { SetDataset(std::move(value)); return *this;} private: Schedule m_schedule; bool m_scheduleHasBeenSet = false; TriggeringDataset m_dataset; bool m_datasetHasBeenSet = false; }; } // namespace Model } // namespace IoTAnalytics } // namespace Aws