AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
AccessProfile.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AccessProfileType.h>
9#include <aws/cloudwatchomni/model/AssumeStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace CloudWatchOmni {
23namespace Model {
24
31 public:
32 AWS_CLOUDWATCHOMNI_API AccessProfile() = default;
33 AWS_CLOUDWATCHOMNI_API AccessProfile(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_CLOUDWATCHOMNI_API AccessProfile& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
36
38
41 inline const Aws::String& GetProfileId() const { return m_profileId; }
42 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
43 template <typename ProfileIdT = Aws::String>
44 void SetProfileId(ProfileIdT&& value) {
45 m_profileIdHasBeenSet = true;
46 m_profileId = std::forward<ProfileIdT>(value);
47 }
48 template <typename ProfileIdT = Aws::String>
49 AccessProfile& WithProfileId(ProfileIdT&& value) {
50 SetProfileId(std::forward<ProfileIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetSpaceId() const { return m_spaceId; }
60 inline bool SpaceIdHasBeenSet() const { return m_spaceIdHasBeenSet; }
61 template <typename SpaceIdT = Aws::String>
62 void SetSpaceId(SpaceIdT&& value) {
63 m_spaceIdHasBeenSet = true;
64 m_spaceId = std::forward<SpaceIdT>(value);
65 }
66 template <typename SpaceIdT = Aws::String>
67 AccessProfile& WithSpaceId(SpaceIdT&& value) {
68 SetSpaceId(std::forward<SpaceIdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetArn() const { return m_arn; }
78 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
79 template <typename ArnT = Aws::String>
80 void SetArn(ArnT&& value) {
81 m_arnHasBeenSet = true;
82 m_arn = std::forward<ArnT>(value);
83 }
84 template <typename ArnT = Aws::String>
85 AccessProfile& WithArn(ArnT&& value) {
86 SetArn(std::forward<ArnT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetName() const { return m_name; }
96 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
97 template <typename NameT = Aws::String>
98 void SetName(NameT&& value) {
99 m_nameHasBeenSet = true;
100 m_name = std::forward<NameT>(value);
101 }
102 template <typename NameT = Aws::String>
103 AccessProfile& WithName(NameT&& value) {
104 SetName(std::forward<NameT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDescription() const { return m_description; }
114 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
115 template <typename DescriptionT = Aws::String>
116 void SetDescription(DescriptionT&& value) {
117 m_descriptionHasBeenSet = true;
118 m_description = std::forward<DescriptionT>(value);
119 }
120 template <typename DescriptionT = Aws::String>
121 AccessProfile& WithDescription(DescriptionT&& value) {
122 SetDescription(std::forward<DescriptionT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
132 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
133 template <typename CreatedAtT = Aws::Utils::DateTime>
134 void SetCreatedAt(CreatedAtT&& value) {
135 m_createdAtHasBeenSet = true;
136 m_createdAt = std::forward<CreatedAtT>(value);
137 }
138 template <typename CreatedAtT = Aws::Utils::DateTime>
139 AccessProfile& WithCreatedAt(CreatedAtT&& value) {
140 SetCreatedAt(std::forward<CreatedAtT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
150 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
151 template <typename UpdatedAtT = Aws::Utils::DateTime>
152 void SetUpdatedAt(UpdatedAtT&& value) {
153 m_updatedAtHasBeenSet = true;
154 m_updatedAt = std::forward<UpdatedAtT>(value);
155 }
156 template <typename UpdatedAtT = Aws::Utils::DateTime>
157 AccessProfile& WithUpdatedAt(UpdatedAtT&& value) {
158 SetUpdatedAt(std::forward<UpdatedAtT>(value));
159 return *this;
160 }
162
164
167 inline AssumeStatus GetAssumeStatus() const { return m_assumeStatus; }
168 inline bool AssumeStatusHasBeenSet() const { return m_assumeStatusHasBeenSet; }
169 inline void SetAssumeStatus(AssumeStatus value) {
170 m_assumeStatusHasBeenSet = true;
171 m_assumeStatus = value;
172 }
174 SetAssumeStatus(value);
175 return *this;
176 }
178
180
183 inline AccessProfileType GetProfileType() const { return m_profileType; }
184 inline bool ProfileTypeHasBeenSet() const { return m_profileTypeHasBeenSet; }
186 m_profileTypeHasBeenSet = true;
187 m_profileType = value;
188 }
190 SetProfileType(value);
191 return *this;
192 }
194 private:
195 Aws::String m_profileId;
196
197 Aws::String m_spaceId;
198
199 Aws::String m_arn;
200
201 Aws::String m_name;
202
203 Aws::String m_description;
204
205 Aws::Utils::DateTime m_createdAt{};
206
207 Aws::Utils::DateTime m_updatedAt{};
208
209 AssumeStatus m_assumeStatus{AssumeStatus::NOT_SET};
210
212 bool m_profileIdHasBeenSet = false;
213 bool m_spaceIdHasBeenSet = false;
214 bool m_arnHasBeenSet = false;
215 bool m_nameHasBeenSet = false;
216 bool m_descriptionHasBeenSet = false;
217 bool m_createdAtHasBeenSet = false;
218 bool m_updatedAtHasBeenSet = false;
219 bool m_assumeStatusHasBeenSet = false;
220 bool m_profileTypeHasBeenSet = false;
221};
222
223} // namespace Model
224} // namespace CloudWatchOmni
225} // namespace Aws
AccessProfileType GetProfileType() const
AccessProfile & WithUpdatedAt(UpdatedAtT &&value)
AccessProfile & WithArn(ArnT &&value)
void SetDescription(DescriptionT &&value)
AWS_CLOUDWATCHOMNI_API AccessProfile(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccessProfile & WithSpaceId(SpaceIdT &&value)
AccessProfile & WithName(NameT &&value)
const Aws::String & GetSpaceId() const
const Aws::String & GetName() const
AWS_CLOUDWATCHOMNI_API AccessProfile & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AccessProfile & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetArn() const
AccessProfile & WithProfileId(ProfileIdT &&value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetProfileId() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_CLOUDWATCHOMNI_API AccessProfile()=default
const Aws::Utils::DateTime & GetUpdatedAt() const
AccessProfile & WithDescription(DescriptionT &&value)
AccessProfile & WithProfileType(AccessProfileType value)
void SetProfileType(AccessProfileType value)
AccessProfile & WithAssumeStatus(AssumeStatus value)
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String