AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ScheduleSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/scheduler/Scheduler_EXPORTS.h>
10#include <aws/scheduler/model/ScheduleState.h>
11#include <aws/scheduler/model/TargetSummary.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Scheduler {
23namespace Model {
24
31 public:
32 AWS_SCHEDULER_API ScheduleSummary() = default;
33 AWS_SCHEDULER_API ScheduleSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 ScheduleSummary& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
60 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
61 template <typename CreationDateT = Aws::Utils::DateTime>
62 void SetCreationDate(CreationDateT&& value) {
63 m_creationDateHasBeenSet = true;
64 m_creationDate = std::forward<CreationDateT>(value);
65 }
66 template <typename CreationDateT = Aws::Utils::DateTime>
67 ScheduleSummary& WithCreationDate(CreationDateT&& value) {
68 SetCreationDate(std::forward<CreationDateT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetGroupName() const { return m_groupName; }
78 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
79 template <typename GroupNameT = Aws::String>
80 void SetGroupName(GroupNameT&& value) {
81 m_groupNameHasBeenSet = true;
82 m_groupName = std::forward<GroupNameT>(value);
83 }
84 template <typename GroupNameT = Aws::String>
85 ScheduleSummary& WithGroupName(GroupNameT&& value) {
86 SetGroupName(std::forward<GroupNameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
96 inline bool LastModificationDateHasBeenSet() const { return m_lastModificationDateHasBeenSet; }
97 template <typename LastModificationDateT = Aws::Utils::DateTime>
98 void SetLastModificationDate(LastModificationDateT&& value) {
99 m_lastModificationDateHasBeenSet = true;
100 m_lastModificationDate = std::forward<LastModificationDateT>(value);
101 }
102 template <typename LastModificationDateT = Aws::Utils::DateTime>
103 ScheduleSummary& WithLastModificationDate(LastModificationDateT&& value) {
104 SetLastModificationDate(std::forward<LastModificationDateT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetName() const { return m_name; }
114 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
115 template <typename NameT = Aws::String>
116 void SetName(NameT&& value) {
117 m_nameHasBeenSet = true;
118 m_name = std::forward<NameT>(value);
119 }
120 template <typename NameT = Aws::String>
121 ScheduleSummary& WithName(NameT&& value) {
122 SetName(std::forward<NameT>(value));
123 return *this;
124 }
126
128
131 inline ScheduleState GetState() const { return m_state; }
132 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
133 inline void SetState(ScheduleState value) {
134 m_stateHasBeenSet = true;
135 m_state = value;
136 }
138 SetState(value);
139 return *this;
140 }
142
144
147 inline const TargetSummary& GetTarget() const { return m_target; }
148 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
149 template <typename TargetT = TargetSummary>
150 void SetTarget(TargetT&& value) {
151 m_targetHasBeenSet = true;
152 m_target = std::forward<TargetT>(value);
153 }
154 template <typename TargetT = TargetSummary>
155 ScheduleSummary& WithTarget(TargetT&& value) {
156 SetTarget(std::forward<TargetT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_arn;
162
163 Aws::Utils::DateTime m_creationDate{};
164
165 Aws::String m_groupName;
166
167 Aws::Utils::DateTime m_lastModificationDate{};
168
169 Aws::String m_name;
170
172
173 TargetSummary m_target;
174 bool m_arnHasBeenSet = false;
175 bool m_creationDateHasBeenSet = false;
176 bool m_groupNameHasBeenSet = false;
177 bool m_lastModificationDateHasBeenSet = false;
178 bool m_nameHasBeenSet = false;
179 bool m_stateHasBeenSet = false;
180 bool m_targetHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Scheduler
185} // namespace Aws
const TargetSummary & GetTarget() const
ScheduleSummary & WithLastModificationDate(LastModificationDateT &&value)
AWS_SCHEDULER_API ScheduleSummary()=default
void SetGroupName(GroupNameT &&value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SCHEDULER_API ScheduleSummary(Aws::Utils::Json::JsonView jsonValue)
ScheduleSummary & WithArn(ArnT &&value)
ScheduleSummary & WithTarget(TargetT &&value)
void SetLastModificationDate(LastModificationDateT &&value)
ScheduleSummary & WithCreationDate(CreationDateT &&value)
ScheduleSummary & WithName(NameT &&value)
void SetCreationDate(CreationDateT &&value)
const Aws::String & GetName() const
const Aws::String & GetArn() const
const Aws::Utils::DateTime & GetLastModificationDate() const
ScheduleSummary & WithState(ScheduleState value)
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetGroupName() const
ScheduleSummary & WithGroupName(GroupNameT &&value)
AWS_SCHEDULER_API ScheduleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue