This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files

121 lines
3.5 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/model/Schedule.h>
#include <aws/iotanalytics/model/TriggeringDataset.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace IoTAnalytics
{
namespace Model
{
/**
* <p>The "DatasetTrigger" that specifies when the data set is automatically
* updated.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/iotanalytics-2017-11-27/DatasetTrigger">AWS
* API Reference</a></p>
*/
class AWS_IOTANALYTICS_API DatasetTrigger
{
public:
DatasetTrigger();
DatasetTrigger(Aws::Utils::Json::JsonView jsonValue);
DatasetTrigger& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The "Schedule" when the trigger is initiated.</p>
*/
inline const Schedule& GetSchedule() const{ return m_schedule; }
/**
* <p>The "Schedule" when the trigger is initiated.</p>
*/
inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
/**
* <p>The "Schedule" when the trigger is initiated.</p>
*/
inline void SetSchedule(const Schedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
/**
* <p>The "Schedule" when the trigger is initiated.</p>
*/
inline void SetSchedule(Schedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
/**
* <p>The "Schedule" when the trigger is initiated.</p>
*/
inline DatasetTrigger& WithSchedule(const Schedule& value) { SetSchedule(value); return *this;}
/**
* <p>The "Schedule" when the trigger is initiated.</p>
*/
inline DatasetTrigger& WithSchedule(Schedule&& value) { SetSchedule(std::move(value)); return *this;}
/**
* <p>The data set whose content creation triggers the creation of this data set's
* contents.</p>
*/
inline const TriggeringDataset& GetDataset() const{ return m_dataset; }
/**
* <p>The data set whose content creation triggers the creation of this data set's
* contents.</p>
*/
inline bool DatasetHasBeenSet() const { return m_datasetHasBeenSet; }
/**
* <p>The data set whose content creation triggers the creation of this data set's
* contents.</p>
*/
inline void SetDataset(const TriggeringDataset& value) { m_datasetHasBeenSet = true; m_dataset = value; }
/**
* <p>The data set whose content creation triggers the creation of this data set's
* contents.</p>
*/
inline void SetDataset(TriggeringDataset&& value) { m_datasetHasBeenSet = true; m_dataset = std::move(value); }
/**
* <p>The data set whose content creation triggers the creation of this data set's
* contents.</p>
*/
inline DatasetTrigger& WithDataset(const TriggeringDataset& value) { SetDataset(value); return *this;}
/**
* <p>The data set whose content creation triggers the creation of this data set's
* contents.</p>
*/
inline DatasetTrigger& WithDataset(TriggeringDataset&& value) { SetDataset(std::move(value)); return *this;}
private:
Schedule m_schedule;
bool m_scheduleHasBeenSet;
TriggeringDataset m_dataset;
bool m_datasetHasBeenSet;
};
} // namespace Model
} // namespace IoTAnalytics
} // namespace Aws