AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
ScheduleAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/medialive/MediaLive_EXPORTS.h>
9#include <aws/medialive/model/ScheduleActionSettings.h>
10#include <aws/medialive/model/ScheduleActionStartSettings.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaLive {
22namespace Model {
23
30 public:
31 AWS_MEDIALIVE_API ScheduleAction() = default;
32 AWS_MEDIALIVE_API ScheduleAction(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
44 inline const Aws::String& GetActionName() const { return m_actionName; }
45 inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; }
46 template <typename ActionNameT = Aws::String>
47 void SetActionName(ActionNameT&& value) {
48 m_actionNameHasBeenSet = true;
49 m_actionName = std::forward<ActionNameT>(value);
50 }
51 template <typename ActionNameT = Aws::String>
52 ScheduleAction& WithActionName(ActionNameT&& value) {
53 SetActionName(std::forward<ActionNameT>(value));
54 return *this;
55 }
57
59
62 inline const ScheduleActionSettings& GetScheduleActionSettings() const { return m_scheduleActionSettings; }
63 inline bool ScheduleActionSettingsHasBeenSet() const { return m_scheduleActionSettingsHasBeenSet; }
64 template <typename ScheduleActionSettingsT = ScheduleActionSettings>
65 void SetScheduleActionSettings(ScheduleActionSettingsT&& value) {
66 m_scheduleActionSettingsHasBeenSet = true;
67 m_scheduleActionSettings = std::forward<ScheduleActionSettingsT>(value);
68 }
69 template <typename ScheduleActionSettingsT = ScheduleActionSettings>
70 ScheduleAction& WithScheduleActionSettings(ScheduleActionSettingsT&& value) {
71 SetScheduleActionSettings(std::forward<ScheduleActionSettingsT>(value));
72 return *this;
73 }
75
77
80 inline const ScheduleActionStartSettings& GetScheduleActionStartSettings() const { return m_scheduleActionStartSettings; }
81 inline bool ScheduleActionStartSettingsHasBeenSet() const { return m_scheduleActionStartSettingsHasBeenSet; }
82 template <typename ScheduleActionStartSettingsT = ScheduleActionStartSettings>
83 void SetScheduleActionStartSettings(ScheduleActionStartSettingsT&& value) {
84 m_scheduleActionStartSettingsHasBeenSet = true;
85 m_scheduleActionStartSettings = std::forward<ScheduleActionStartSettingsT>(value);
86 }
87 template <typename ScheduleActionStartSettingsT = ScheduleActionStartSettings>
88 ScheduleAction& WithScheduleActionStartSettings(ScheduleActionStartSettingsT&& value) {
89 SetScheduleActionStartSettings(std::forward<ScheduleActionStartSettingsT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_actionName;
95
96 ScheduleActionSettings m_scheduleActionSettings;
97
98 ScheduleActionStartSettings m_scheduleActionStartSettings;
99 bool m_actionNameHasBeenSet = false;
100 bool m_scheduleActionSettingsHasBeenSet = false;
101 bool m_scheduleActionStartSettingsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace MediaLive
106} // namespace Aws
const ScheduleActionStartSettings & GetScheduleActionStartSettings() const
AWS_MEDIALIVE_API ScheduleAction()=default
const ScheduleActionSettings & GetScheduleActionSettings() const
void SetScheduleActionStartSettings(ScheduleActionStartSettingsT &&value)
ScheduleAction & WithActionName(ActionNameT &&value)
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetActionName() const
AWS_MEDIALIVE_API ScheduleAction(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIALIVE_API ScheduleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetScheduleActionSettings(ScheduleActionSettingsT &&value)
ScheduleAction & WithScheduleActionStartSettings(ScheduleActionStartSettingsT &&value)
void SetActionName(ActionNameT &&value)
ScheduleAction & WithScheduleActionSettings(ScheduleActionSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue