AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
CommonControlSummary.h
1
6#pragma once
7#include <aws/controlcatalog/ControlCatalog_EXPORTS.h>
8#include <aws/controlcatalog/model/AssociatedDomainSummary.h>
9#include <aws/controlcatalog/model/AssociatedObjectiveSummary.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ControlCatalog {
23namespace Model {
24
31 public:
32 AWS_CONTROLCATALOG_API CommonControlSummary() = default;
33 AWS_CONTROLCATALOG_API CommonControlSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONTROLCATALOG_API CommonControlSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CONTROLCATALOG_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>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
85 CommonControlSummary& WithDescription(DescriptionT&& value) {
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const AssociatedDomainSummary& GetDomain() const { return m_domain; }
96 inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; }
97 template <typename DomainT = AssociatedDomainSummary>
98 void SetDomain(DomainT&& value) {
99 m_domainHasBeenSet = true;
100 m_domain = std::forward<DomainT>(value);
101 }
102 template <typename DomainT = AssociatedDomainSummary>
104 SetDomain(std::forward<DomainT>(value));
105 return *this;
106 }
108
110
113 inline const AssociatedObjectiveSummary& GetObjective() const { return m_objective; }
114 inline bool ObjectiveHasBeenSet() const { return m_objectiveHasBeenSet; }
115 template <typename ObjectiveT = AssociatedObjectiveSummary>
116 void SetObjective(ObjectiveT&& value) {
117 m_objectiveHasBeenSet = true;
118 m_objective = std::forward<ObjectiveT>(value);
119 }
120 template <typename ObjectiveT = AssociatedObjectiveSummary>
121 CommonControlSummary& WithObjective(ObjectiveT&& value) {
122 SetObjective(std::forward<ObjectiveT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetCreateTime() const { return m_createTime; }
132 inline bool CreateTimeHasBeenSet() const { return m_createTimeHasBeenSet; }
133 template <typename CreateTimeT = Aws::Utils::DateTime>
134 void SetCreateTime(CreateTimeT&& value) {
135 m_createTimeHasBeenSet = true;
136 m_createTime = std::forward<CreateTimeT>(value);
137 }
138 template <typename CreateTimeT = Aws::Utils::DateTime>
139 CommonControlSummary& WithCreateTime(CreateTimeT&& value) {
140 SetCreateTime(std::forward<CreateTimeT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetLastUpdateTime() const { return m_lastUpdateTime; }
150 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
151 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
152 void SetLastUpdateTime(LastUpdateTimeT&& value) {
153 m_lastUpdateTimeHasBeenSet = true;
154 m_lastUpdateTime = std::forward<LastUpdateTimeT>(value);
155 }
156 template <typename LastUpdateTimeT = Aws::Utils::DateTime>
157 CommonControlSummary& WithLastUpdateTime(LastUpdateTimeT&& value) {
158 SetLastUpdateTime(std::forward<LastUpdateTimeT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_arn;
164
165 Aws::String m_name;
166
167 Aws::String m_description;
168
170
171 AssociatedObjectiveSummary m_objective;
172
173 Aws::Utils::DateTime m_createTime{};
174
175 Aws::Utils::DateTime m_lastUpdateTime{};
176 bool m_arnHasBeenSet = false;
177 bool m_nameHasBeenSet = false;
178 bool m_descriptionHasBeenSet = false;
179 bool m_domainHasBeenSet = false;
180 bool m_objectiveHasBeenSet = false;
181 bool m_createTimeHasBeenSet = false;
182 bool m_lastUpdateTimeHasBeenSet = false;
183};
184
185} // namespace Model
186} // namespace ControlCatalog
187} // namespace Aws
AWS_CONTROLCATALOG_API CommonControlSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreateTime() const
AWS_CONTROLCATALOG_API CommonControlSummary()=default
CommonControlSummary & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastUpdateTime() const
CommonControlSummary & WithArn(ArnT &&value)
CommonControlSummary & WithDomain(DomainT &&value)
CommonControlSummary & WithName(NameT &&value)
AWS_CONTROLCATALOG_API Aws::Utils::Json::JsonValue Jsonize() const
CommonControlSummary & WithLastUpdateTime(LastUpdateTimeT &&value)
const AssociatedObjectiveSummary & GetObjective() const
const AssociatedDomainSummary & GetDomain() const
CommonControlSummary & WithObjective(ObjectiveT &&value)
AWS_CONTROLCATALOG_API CommonControlSummary(Aws::Utils::Json::JsonView jsonValue)
CommonControlSummary & WithCreateTime(CreateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue