AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
OrganizationAccessGrant.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AccessGrantType.h>
9#include <aws/cloudwatchomni/model/OrganizationAccessGrantPrincipal.h>
10#include <aws/cloudwatchomni/model/OrganizationGrantPermission.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/crt/cbor/Cbor.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Cbor {
20class CborValue;
21} // namespace Cbor
22} // namespace Utils
23namespace CloudWatchOmni {
24namespace Model {
25
32 public:
33 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant() = default;
34 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Aws::String& GetGrantId() const { return m_grantId; }
43 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
44 template <typename GrantIdT = Aws::String>
45 void SetGrantId(GrantIdT&& value) {
46 m_grantIdHasBeenSet = true;
47 m_grantId = std::forward<GrantIdT>(value);
48 }
49 template <typename GrantIdT = Aws::String>
51 SetGrantId(std::forward<GrantIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetGrantArn() const { return m_grantArn; }
61 inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
62 template <typename GrantArnT = Aws::String>
63 void SetGrantArn(GrantArnT&& value) {
64 m_grantArnHasBeenSet = true;
65 m_grantArn = std::forward<GrantArnT>(value);
66 }
67 template <typename GrantArnT = Aws::String>
69 SetGrantArn(std::forward<GrantArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetName() const { return m_name; }
79 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
80 template <typename NameT = Aws::String>
81 void SetName(NameT&& value) {
82 m_nameHasBeenSet = true;
83 m_name = std::forward<NameT>(value);
84 }
85 template <typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetDomainId() const { return m_domainId; }
97 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
98 template <typename DomainIdT = Aws::String>
99 void SetDomainId(DomainIdT&& value) {
100 m_domainIdHasBeenSet = true;
101 m_domainId = std::forward<DomainIdT>(value);
102 }
103 template <typename DomainIdT = Aws::String>
105 SetDomainId(std::forward<DomainIdT>(value));
106 return *this;
107 }
109
111
114 inline const OrganizationAccessGrantPrincipal& GetPrincipal() const { return m_principal; }
115 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
116 template <typename PrincipalT = OrganizationAccessGrantPrincipal>
117 void SetPrincipal(PrincipalT&& value) {
118 m_principalHasBeenSet = true;
119 m_principal = std::forward<PrincipalT>(value);
120 }
121 template <typename PrincipalT = OrganizationAccessGrantPrincipal>
123 SetPrincipal(std::forward<PrincipalT>(value));
124 return *this;
125 }
127
129
132 inline OrganizationGrantPermission GetPermission() const { return m_permission; }
133 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
135 m_permissionHasBeenSet = true;
136 m_permission = value;
137 }
139 SetPermission(value);
140 return *this;
141 }
143
145
148 inline AccessGrantType GetGrantType() const { return m_grantType; }
149 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
150 inline void SetGrantType(AccessGrantType value) {
151 m_grantTypeHasBeenSet = true;
152 m_grantType = value;
153 }
155 SetGrantType(value);
156 return *this;
157 }
159
161
164 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
165 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
166 template <typename CreatedByT = Aws::String>
167 void SetCreatedBy(CreatedByT&& value) {
168 m_createdByHasBeenSet = true;
169 m_createdBy = std::forward<CreatedByT>(value);
170 }
171 template <typename CreatedByT = Aws::String>
173 SetCreatedBy(std::forward<CreatedByT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
183 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
184 template <typename CreatedAtT = Aws::Utils::DateTime>
185 void SetCreatedAt(CreatedAtT&& value) {
186 m_createdAtHasBeenSet = true;
187 m_createdAt = std::forward<CreatedAtT>(value);
188 }
189 template <typename CreatedAtT = Aws::Utils::DateTime>
191 SetCreatedAt(std::forward<CreatedAtT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
201 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
202 template <typename UpdatedAtT = Aws::Utils::DateTime>
203 void SetUpdatedAt(UpdatedAtT&& value) {
204 m_updatedAtHasBeenSet = true;
205 m_updatedAt = std::forward<UpdatedAtT>(value);
206 }
207 template <typename UpdatedAtT = Aws::Utils::DateTime>
209 SetUpdatedAt(std::forward<UpdatedAtT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_grantId;
215
216 Aws::String m_grantArn;
217
218 Aws::String m_name;
219
220 Aws::String m_domainId;
221
223
225
227
228 Aws::String m_createdBy;
229
230 Aws::Utils::DateTime m_createdAt{};
231
232 Aws::Utils::DateTime m_updatedAt{};
233 bool m_grantIdHasBeenSet = false;
234 bool m_grantArnHasBeenSet = false;
235 bool m_nameHasBeenSet = false;
236 bool m_domainIdHasBeenSet = false;
237 bool m_principalHasBeenSet = false;
238 bool m_permissionHasBeenSet = false;
239 bool m_grantTypeHasBeenSet = false;
240 bool m_createdByHasBeenSet = false;
241 bool m_createdAtHasBeenSet = false;
242 bool m_updatedAtHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace CloudWatchOmni
247} // namespace Aws
const OrganizationAccessGrantPrincipal & GetPrincipal() const
OrganizationAccessGrant & WithName(NameT &&value)
OrganizationAccessGrant & WithCreatedAt(CreatedAtT &&value)
OrganizationAccessGrant & WithPermission(OrganizationGrantPermission value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OrganizationAccessGrant & WithDomainId(DomainIdT &&value)
OrganizationAccessGrant & WithUpdatedAt(UpdatedAtT &&value)
OrganizationAccessGrant & WithGrantArn(GrantArnT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetPermission(OrganizationGrantPermission value)
OrganizationAccessGrant & WithGrantType(AccessGrantType value)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OrganizationAccessGrant & WithGrantId(GrantIdT &&value)
OrganizationAccessGrant & WithPrincipal(PrincipalT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant()=default
OrganizationAccessGrant & WithCreatedBy(CreatedByT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String