AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
ServiceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/proton/Proton_EXPORTS.h>
10#include <aws/proton/model/ServiceStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Proton {
22namespace Model {
23
30 public:
31 AWS_PROTON_API ServiceSummary() = default;
32 AWS_PROTON_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
34 AWS_PROTON_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>
48 ServiceSummary& WithArn(ArnT&& value) {
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
59 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
60 template <typename CreatedAtT = Aws::Utils::DateTime>
61 void SetCreatedAt(CreatedAtT&& value) {
62 m_createdAtHasBeenSet = true;
63 m_createdAt = std::forward<CreatedAtT>(value);
64 }
65 template <typename CreatedAtT = Aws::Utils::DateTime>
66 ServiceSummary& WithCreatedAt(CreatedAtT&& value) {
67 SetCreatedAt(std::forward<CreatedAtT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
78 template <typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) {
80 m_descriptionHasBeenSet = true;
81 m_description = std::forward<DescriptionT>(value);
82 }
83 template <typename DescriptionT = Aws::String>
84 ServiceSummary& WithDescription(DescriptionT&& value) {
85 SetDescription(std::forward<DescriptionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetLastModifiedAt() const { return m_lastModifiedAt; }
95 inline bool LastModifiedAtHasBeenSet() const { return m_lastModifiedAtHasBeenSet; }
96 template <typename LastModifiedAtT = Aws::Utils::DateTime>
97 void SetLastModifiedAt(LastModifiedAtT&& value) {
98 m_lastModifiedAtHasBeenSet = true;
99 m_lastModifiedAt = std::forward<LastModifiedAtT>(value);
100 }
101 template <typename LastModifiedAtT = Aws::Utils::DateTime>
102 ServiceSummary& WithLastModifiedAt(LastModifiedAtT&& value) {
103 SetLastModifiedAt(std::forward<LastModifiedAtT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetName() const { return m_name; }
113 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
114 template <typename NameT = Aws::String>
115 void SetName(NameT&& value) {
116 m_nameHasBeenSet = true;
117 m_name = std::forward<NameT>(value);
118 }
119 template <typename NameT = Aws::String>
120 ServiceSummary& WithName(NameT&& value) {
121 SetName(std::forward<NameT>(value));
122 return *this;
123 }
125
127
130 inline ServiceStatus GetStatus() const { return m_status; }
131 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
132 inline void SetStatus(ServiceStatus value) {
133 m_statusHasBeenSet = true;
134 m_status = value;
135 }
137 SetStatus(value);
138 return *this;
139 }
141
143
146 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
147 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
148 template <typename StatusMessageT = Aws::String>
149 void SetStatusMessage(StatusMessageT&& value) {
150 m_statusMessageHasBeenSet = true;
151 m_statusMessage = std::forward<StatusMessageT>(value);
152 }
153 template <typename StatusMessageT = Aws::String>
154 ServiceSummary& WithStatusMessage(StatusMessageT&& value) {
155 SetStatusMessage(std::forward<StatusMessageT>(value));
156 return *this;
157 }
159
161
164 inline const Aws::String& GetTemplateName() const { return m_templateName; }
165 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
166 template <typename TemplateNameT = Aws::String>
167 void SetTemplateName(TemplateNameT&& value) {
168 m_templateNameHasBeenSet = true;
169 m_templateName = std::forward<TemplateNameT>(value);
170 }
171 template <typename TemplateNameT = Aws::String>
172 ServiceSummary& WithTemplateName(TemplateNameT&& value) {
173 SetTemplateName(std::forward<TemplateNameT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_arn;
179
180 Aws::Utils::DateTime m_createdAt{};
181
182 Aws::String m_description;
183
184 Aws::Utils::DateTime m_lastModifiedAt{};
185
186 Aws::String m_name;
187
189
190 Aws::String m_statusMessage;
191
192 Aws::String m_templateName;
193 bool m_arnHasBeenSet = false;
194 bool m_createdAtHasBeenSet = false;
195 bool m_descriptionHasBeenSet = false;
196 bool m_lastModifiedAtHasBeenSet = false;
197 bool m_nameHasBeenSet = false;
198 bool m_statusHasBeenSet = false;
199 bool m_statusMessageHasBeenSet = false;
200 bool m_templateNameHasBeenSet = false;
201};
202
203} // namespace Model
204} // namespace Proton
205} // namespace Aws
void SetDescription(DescriptionT &&value)
ServiceSummary & WithStatusMessage(StatusMessageT &&value)
void SetLastModifiedAt(LastModifiedAtT &&value)
const Aws::String & GetStatusMessage() const
const Aws::Utils::DateTime & GetLastModifiedAt() const
void SetStatus(ServiceStatus value)
ServiceSummary & WithArn(ArnT &&value)
ServiceSummary & WithLastModifiedAt(LastModifiedAtT &&value)
const Aws::String & GetTemplateName() const
AWS_PROTON_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::String & GetArn() const
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedAt(CreatedAtT &&value)
AWS_PROTON_API ServiceSummary()=default
void SetTemplateName(TemplateNameT &&value)
ServiceSummary & WithCreatedAt(CreatedAtT &&value)
ServiceSummary & WithDescription(DescriptionT &&value)
const Aws::String & GetName() const
ServiceSummary & WithStatus(ServiceStatus value)
AWS_PROTON_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
void SetStatusMessage(StatusMessageT &&value)
ServiceSummary & WithName(NameT &&value)
ServiceSummary & WithTemplateName(TemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue