AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ScheduleSummary.h
1
6#pragma once
7#include <aws/scheduler/Scheduler_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/scheduler/model/ScheduleState.h>
11#include <aws/scheduler/model/TargetSummary.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Scheduler
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SCHEDULER_API ScheduleSummary() = default;
38 AWS_SCHEDULER_API ScheduleSummary(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SCHEDULER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const { return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 ScheduleSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
63 template<typename CreationDateT = Aws::Utils::DateTime>
64 ScheduleSummary& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
66
68
71 inline const Aws::String& GetGroupName() const { return m_groupName; }
72 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
73 template<typename GroupNameT = Aws::String>
74 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
75 template<typename GroupNameT = Aws::String>
76 ScheduleSummary& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetLastModificationDate() const { return m_lastModificationDate; }
84 inline bool LastModificationDateHasBeenSet() const { return m_lastModificationDateHasBeenSet; }
85 template<typename LastModificationDateT = Aws::Utils::DateTime>
86 void SetLastModificationDate(LastModificationDateT&& value) { m_lastModificationDateHasBeenSet = true; m_lastModificationDate = std::forward<LastModificationDateT>(value); }
87 template<typename LastModificationDateT = Aws::Utils::DateTime>
88 ScheduleSummary& WithLastModificationDate(LastModificationDateT&& value) { SetLastModificationDate(std::forward<LastModificationDateT>(value)); return *this;}
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template<typename NameT = Aws::String>
98 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
99 template<typename NameT = Aws::String>
100 ScheduleSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
102
104
107 inline ScheduleState GetState() const { return m_state; }
108 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
109 inline void SetState(ScheduleState value) { m_stateHasBeenSet = true; m_state = value; }
110 inline ScheduleSummary& WithState(ScheduleState value) { SetState(value); return *this;}
112
114
117 inline const TargetSummary& GetTarget() const { return m_target; }
118 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
119 template<typename TargetT = TargetSummary>
120 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
121 template<typename TargetT = TargetSummary>
122 ScheduleSummary& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
124 private:
125
126 Aws::String m_arn;
127 bool m_arnHasBeenSet = false;
128
129 Aws::Utils::DateTime m_creationDate{};
130 bool m_creationDateHasBeenSet = false;
131
132 Aws::String m_groupName;
133 bool m_groupNameHasBeenSet = false;
134
135 Aws::Utils::DateTime m_lastModificationDate{};
136 bool m_lastModificationDateHasBeenSet = false;
137
138 Aws::String m_name;
139 bool m_nameHasBeenSet = false;
140
142 bool m_stateHasBeenSet = false;
143
144 TargetSummary m_target;
145 bool m_targetHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace Scheduler
150} // 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