AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Bedrock
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_BEDROCK_API GuardrailSummary();
40 AWS_BEDROCK_API GuardrailSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline GuardrailSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline GuardrailSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline GuardrailSummary& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetArn() const{ return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
66 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
67 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
68 inline GuardrailSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 inline GuardrailSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
70 inline GuardrailSummary& WithArn(const char* value) { SetArn(value); return *this;}
72
74
77 inline const GuardrailStatus& GetStatus() const{ return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(const GuardrailStatus& value) { m_statusHasBeenSet = true; m_status = value; }
80 inline void SetStatus(GuardrailStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
81 inline GuardrailSummary& WithStatus(const GuardrailStatus& value) { SetStatus(value); return *this;}
82 inline GuardrailSummary& WithStatus(GuardrailStatus&& value) { SetStatus(std::move(value)); return *this;}
84
86
89 inline const Aws::String& GetName() const{ return m_name; }
90 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
91 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
92 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
93 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
94 inline GuardrailSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
95 inline GuardrailSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
96 inline GuardrailSummary& WithName(const char* value) { SetName(value); return *this;}
98
100
103 inline const Aws::String& GetDescription() const{ return m_description; }
104 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
105 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
106 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
107 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
108 inline GuardrailSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
109 inline GuardrailSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
110 inline GuardrailSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
112
114
117 inline const Aws::String& GetVersion() const{ return m_version; }
118 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
119 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
120 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
121 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
122 inline GuardrailSummary& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
123 inline GuardrailSummary& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
124 inline GuardrailSummary& WithVersion(const char* value) { SetVersion(value); return *this;}
126
128
131 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
132 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
133 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
134 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
135 inline GuardrailSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
136 inline GuardrailSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
138
140
143 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
144 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
145 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
146 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
147 inline GuardrailSummary& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
148 inline GuardrailSummary& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
150 private:
151
152 Aws::String m_id;
153 bool m_idHasBeenSet = false;
154
155 Aws::String m_arn;
156 bool m_arnHasBeenSet = false;
157
158 GuardrailStatus m_status;
159 bool m_statusHasBeenSet = false;
160
161 Aws::String m_name;
162 bool m_nameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 Aws::String m_version;
168 bool m_versionHasBeenSet = false;
169
170 Aws::Utils::DateTime m_createdAt;
171 bool m_createdAtHasBeenSet = false;
172
173 Aws::Utils::DateTime m_updatedAt;
174 bool m_updatedAtHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace Bedrock
179} // namespace Aws
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetStatus(const GuardrailStatus &value)
GuardrailSummary & WithArn(Aws::String &&value)
void SetDescription(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GuardrailSummary & WithName(const Aws::String &value)
void SetDescription(Aws::String &&value)
GuardrailSummary & WithUpdatedAt(Aws::Utils::DateTime &&value)
GuardrailSummary & WithCreatedAt(const Aws::Utils::DateTime &value)
GuardrailSummary & WithDescription(const Aws::String &value)
AWS_BEDROCK_API GuardrailSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCK_API GuardrailSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
GuardrailSummary & WithName(Aws::String &&value)
void SetArn(const Aws::String &value)
GuardrailSummary & WithId(Aws::String &&value)
GuardrailSummary & WithId(const char *value)
GuardrailSummary & WithUpdatedAt(const Aws::Utils::DateTime &value)
GuardrailSummary & WithStatus(const GuardrailStatus &value)
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetVersion() const
GuardrailSummary & WithStatus(GuardrailStatus &&value)
GuardrailSummary & WithVersion(const Aws::String &value)
const Aws::String & GetArn() const
GuardrailSummary & WithVersion(Aws::String &&value)
const Aws::String & GetId() const
GuardrailSummary & WithDescription(Aws::String &&value)
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(GuardrailStatus &&value)
void SetVersion(const Aws::String &value)
void SetName(const Aws::String &value)
GuardrailSummary & WithId(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
void SetId(const Aws::String &value)
const Aws::String & GetDescription() const
GuardrailSummary & WithArn(const Aws::String &value)
GuardrailSummary & WithArn(const char *value)
GuardrailSummary & WithDescription(const char *value)
GuardrailSummary & WithCreatedAt(Aws::Utils::DateTime &&value)
const GuardrailStatus & GetStatus() const
GuardrailSummary & WithVersion(const char *value)
void SetUpdatedAt(const Aws::Utils::DateTime &value)
GuardrailSummary & WithName(const char *value)
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue