AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
GuardrailSummary.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock/model/GuardrailStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/bedrock/model/GuardrailCrossRegionDetails.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 Bedrock
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_BEDROCK_API GuardrailSummary() = default;
41 AWS_BEDROCK_API GuardrailSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 GuardrailSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
66 template<typename ArnT = Aws::String>
67 GuardrailSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
69
71
74 inline GuardrailStatus GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 inline void SetStatus(GuardrailStatus value) { m_statusHasBeenSet = true; m_status = value; }
77 inline GuardrailSummary& WithStatus(GuardrailStatus value) { SetStatus(value); return *this;}
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 GuardrailSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetDescription() const { return m_description; }
97 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
98 template<typename DescriptionT = Aws::String>
99 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
100 template<typename DescriptionT = Aws::String>
101 GuardrailSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
103
105
108 inline const Aws::String& GetVersion() const { return m_version; }
109 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
110 template<typename VersionT = Aws::String>
111 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
112 template<typename VersionT = Aws::String>
113 GuardrailSummary& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
121 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
122 template<typename CreatedAtT = Aws::Utils::DateTime>
123 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
124 template<typename CreatedAtT = Aws::Utils::DateTime>
125 GuardrailSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
127
129
132 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
133 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
134 template<typename UpdatedAtT = Aws::Utils::DateTime>
135 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
136 template<typename UpdatedAtT = Aws::Utils::DateTime>
137 GuardrailSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
139
141
146 inline const GuardrailCrossRegionDetails& GetCrossRegionDetails() const { return m_crossRegionDetails; }
147 inline bool CrossRegionDetailsHasBeenSet() const { return m_crossRegionDetailsHasBeenSet; }
148 template<typename CrossRegionDetailsT = GuardrailCrossRegionDetails>
149 void SetCrossRegionDetails(CrossRegionDetailsT&& value) { m_crossRegionDetailsHasBeenSet = true; m_crossRegionDetails = std::forward<CrossRegionDetailsT>(value); }
150 template<typename CrossRegionDetailsT = GuardrailCrossRegionDetails>
151 GuardrailSummary& WithCrossRegionDetails(CrossRegionDetailsT&& value) { SetCrossRegionDetails(std::forward<CrossRegionDetailsT>(value)); return *this;}
153 private:
154
155 Aws::String m_id;
156 bool m_idHasBeenSet = false;
157
158 Aws::String m_arn;
159 bool m_arnHasBeenSet = false;
160
162 bool m_statusHasBeenSet = false;
163
164 Aws::String m_name;
165 bool m_nameHasBeenSet = false;
166
167 Aws::String m_description;
168 bool m_descriptionHasBeenSet = false;
169
170 Aws::String m_version;
171 bool m_versionHasBeenSet = false;
172
173 Aws::Utils::DateTime m_createdAt{};
174 bool m_createdAtHasBeenSet = false;
175
176 Aws::Utils::DateTime m_updatedAt{};
177 bool m_updatedAtHasBeenSet = false;
178
179 GuardrailCrossRegionDetails m_crossRegionDetails;
180 bool m_crossRegionDetailsHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace Bedrock
185} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue