AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
ScheduleGroupSummary.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/ScheduleGroupState.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Scheduler {
22namespace Model {
23
30 public:
31 AWS_SCHEDULER_API ScheduleGroupSummary() = default;
34 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
59 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
60 template <typename CreationDateT = Aws::Utils::DateTime>
61 void SetCreationDate(CreationDateT&& value) {
62 m_creationDateHasBeenSet = true;
63 m_creationDate = std::forward<CreationDateT>(value);
64 }
65 template <typename CreationDateT = Aws::Utils::DateTime>
66 ScheduleGroupSummary& WithCreationDate(CreationDateT&& value) {
67 SetCreationDate(std::forward<CreationDateT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
77 inline bool LastModificationDateHasBeenSet() const { return m_lastModificationDateHasBeenSet; }
78 template <typename LastModificationDateT = Aws::Utils::DateTime>
79 void SetLastModificationDate(LastModificationDateT&& value) {
80 m_lastModificationDateHasBeenSet = true;
81 m_lastModificationDate = std::forward<LastModificationDateT>(value);
82 }
83 template <typename LastModificationDateT = Aws::Utils::DateTime>
84 ScheduleGroupSummary& WithLastModificationDate(LastModificationDateT&& value) {
85 SetLastModificationDate(std::forward<LastModificationDateT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetName() const { return m_name; }
95 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
96 template <typename NameT = Aws::String>
97 void SetName(NameT&& value) {
98 m_nameHasBeenSet = true;
99 m_name = std::forward<NameT>(value);
100 }
101 template <typename NameT = Aws::String>
103 SetName(std::forward<NameT>(value));
104 return *this;
105 }
107
109
112 inline ScheduleGroupState GetState() const { return m_state; }
113 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
114 inline void SetState(ScheduleGroupState value) {
115 m_stateHasBeenSet = true;
116 m_state = value;
117 }
119 SetState(value);
120 return *this;
121 }
123 private:
124 Aws::String m_arn;
125
126 Aws::Utils::DateTime m_creationDate{};
127
128 Aws::Utils::DateTime m_lastModificationDate{};
129
130 Aws::String m_name;
131
133 bool m_arnHasBeenSet = false;
134 bool m_creationDateHasBeenSet = false;
135 bool m_lastModificationDateHasBeenSet = false;
136 bool m_nameHasBeenSet = false;
137 bool m_stateHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace Scheduler
142} // namespace Aws
AWS_SCHEDULER_API ScheduleGroupSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastModificationDate() const
const Aws::Utils::DateTime & GetCreationDate() const
ScheduleGroupSummary & WithName(NameT &&value)
AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModificationDate(LastModificationDateT &&value)
ScheduleGroupSummary & WithArn(ArnT &&value)
AWS_SCHEDULER_API ScheduleGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SCHEDULER_API ScheduleGroupSummary()=default
ScheduleGroupSummary & WithState(ScheduleGroupState value)
ScheduleGroupSummary & WithLastModificationDate(LastModificationDateT &&value)
ScheduleGroupSummary & WithCreationDate(CreationDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue