AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GuardrailSummary.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/GuardrailCrossRegionDetails.h>
9#include <aws/bedrock/model/GuardrailStatus.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 Bedrock {
23namespace Model {
24
34 public:
35 AWS_BEDROCK_API GuardrailSummary() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template <typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) {
66 m_arnHasBeenSet = true;
67 m_arn = std::forward<ArnT>(value);
68 }
69 template <typename ArnT = Aws::String>
71 SetArn(std::forward<ArnT>(value));
72 return *this;
73 }
75
77
80 inline GuardrailStatus GetStatus() const { return m_status; }
81 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
82 inline void SetStatus(GuardrailStatus value) {
83 m_statusHasBeenSet = true;
84 m_status = value;
85 }
87 SetStatus(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetDescription() const { return m_description; }
115 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
116 template <typename DescriptionT = Aws::String>
118 m_descriptionHasBeenSet = true;
119 m_description = std::forward<DescriptionT>(value);
120 }
121 template <typename DescriptionT = Aws::String>
123 SetDescription(std::forward<DescriptionT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetVersion() const { return m_version; }
133 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
134 template <typename VersionT = Aws::String>
135 void SetVersion(VersionT&& value) {
136 m_versionHasBeenSet = true;
137 m_version = std::forward<VersionT>(value);
138 }
139 template <typename VersionT = Aws::String>
141 SetVersion(std::forward<VersionT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
151 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
152 template <typename CreatedAtT = Aws::Utils::DateTime>
153 void SetCreatedAt(CreatedAtT&& value) {
154 m_createdAtHasBeenSet = true;
155 m_createdAt = std::forward<CreatedAtT>(value);
156 }
157 template <typename CreatedAtT = Aws::Utils::DateTime>
159 SetCreatedAt(std::forward<CreatedAtT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
169 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
170 template <typename UpdatedAtT = Aws::Utils::DateTime>
171 void SetUpdatedAt(UpdatedAtT&& value) {
172 m_updatedAtHasBeenSet = true;
173 m_updatedAt = std::forward<UpdatedAtT>(value);
174 }
175 template <typename UpdatedAtT = Aws::Utils::DateTime>
177 SetUpdatedAt(std::forward<UpdatedAtT>(value));
178 return *this;
179 }
181
183
188 inline const GuardrailCrossRegionDetails& GetCrossRegionDetails() const { return m_crossRegionDetails; }
189 inline bool CrossRegionDetailsHasBeenSet() const { return m_crossRegionDetailsHasBeenSet; }
190 template <typename CrossRegionDetailsT = GuardrailCrossRegionDetails>
192 m_crossRegionDetailsHasBeenSet = true;
193 m_crossRegionDetails = std::forward<CrossRegionDetailsT>(value);
194 }
195 template <typename CrossRegionDetailsT = GuardrailCrossRegionDetails>
197 SetCrossRegionDetails(std::forward<CrossRegionDetailsT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_id;
203
204 Aws::String m_arn;
205
207
208 Aws::String m_name;
209
210 Aws::String m_description;
211
212 Aws::String m_version;
213
214 Aws::Utils::DateTime m_createdAt{};
215
216 Aws::Utils::DateTime m_updatedAt{};
217
218 GuardrailCrossRegionDetails m_crossRegionDetails;
219 bool m_idHasBeenSet = false;
220 bool m_arnHasBeenSet = false;
221 bool m_statusHasBeenSet = false;
222 bool m_nameHasBeenSet = false;
223 bool m_descriptionHasBeenSet = false;
224 bool m_versionHasBeenSet = false;
225 bool m_createdAtHasBeenSet = false;
226 bool m_updatedAtHasBeenSet = false;
227 bool m_crossRegionDetailsHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace Bedrock
232} // namespace Aws
GuardrailSummary & WithCreatedAt(CreatedAtT &&value)
GuardrailSummary & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
GuardrailSummary & WithName(NameT &&value)
AWS_BEDROCK_API GuardrailSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetStatus(GuardrailStatus value)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetVersion() const
void SetCrossRegionDetails(CrossRegionDetailsT &&value)
const Aws::String & GetArn() const
const Aws::String & GetId() const
GuardrailSummary & WithId(IdT &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
GuardrailSummary & WithCrossRegionDetails(CrossRegionDetailsT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_BEDROCK_API GuardrailSummary()=default
const GuardrailCrossRegionDetails & GetCrossRegionDetails() const
const Aws::String & GetDescription() const
GuardrailSummary & WithStatus(GuardrailStatus value)
GuardrailSummary & WithVersion(VersionT &&value)
GuardrailSummary & WithArn(ArnT &&value)
const Aws::String & GetName() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue