AWS SDK for C++

AWS SDK for C++ Version 1.11.901

Loading...
Searching...
No Matches
OrganizationAccessGrantSummary.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
34 public:
35 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantSummary() = default;
36 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline const Aws::String& GetGrantId() const { return m_grantId; }
45 inline bool GrantIdHasBeenSet() const { return m_grantIdHasBeenSet; }
46 template <typename GrantIdT = Aws::String>
47 void SetGrantId(GrantIdT&& value) {
48 m_grantIdHasBeenSet = true;
49 m_grantId = std::forward<GrantIdT>(value);
50 }
51 template <typename GrantIdT = Aws::String>
53 SetGrantId(std::forward<GrantIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetGrantArn() const { return m_grantArn; }
63 inline bool GrantArnHasBeenSet() const { return m_grantArnHasBeenSet; }
64 template <typename GrantArnT = Aws::String>
65 void SetGrantArn(GrantArnT&& value) {
66 m_grantArnHasBeenSet = true;
67 m_grantArn = std::forward<GrantArnT>(value);
68 }
69 template <typename GrantArnT = Aws::String>
71 SetGrantArn(std::forward<GrantArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetName() const { return m_name; }
81 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
82 template <typename NameT = Aws::String>
83 void SetName(NameT&& value) {
84 m_nameHasBeenSet = true;
85 m_name = std::forward<NameT>(value);
86 }
87 template <typename NameT = Aws::String>
89 SetName(std::forward<NameT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetDomainId() const { return m_domainId; }
99 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
100 template <typename DomainIdT = Aws::String>
101 void SetDomainId(DomainIdT&& value) {
102 m_domainIdHasBeenSet = true;
103 m_domainId = std::forward<DomainIdT>(value);
104 }
105 template <typename DomainIdT = Aws::String>
107 SetDomainId(std::forward<DomainIdT>(value));
108 return *this;
109 }
111
113
116 inline const OrganizationAccessGrantPrincipal& GetPrincipal() const { return m_principal; }
117 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
118 template <typename PrincipalT = OrganizationAccessGrantPrincipal>
119 void SetPrincipal(PrincipalT&& value) {
120 m_principalHasBeenSet = true;
121 m_principal = std::forward<PrincipalT>(value);
122 }
123 template <typename PrincipalT = OrganizationAccessGrantPrincipal>
125 SetPrincipal(std::forward<PrincipalT>(value));
126 return *this;
127 }
129
131
134 inline OrganizationGrantPermission GetPermission() const { return m_permission; }
135 inline bool PermissionHasBeenSet() const { return m_permissionHasBeenSet; }
137 m_permissionHasBeenSet = true;
138 m_permission = value;
139 }
141 SetPermission(value);
142 return *this;
143 }
145
147
150 inline AccessGrantType GetGrantType() const { return m_grantType; }
151 inline bool GrantTypeHasBeenSet() const { return m_grantTypeHasBeenSet; }
152 inline void SetGrantType(AccessGrantType value) {
153 m_grantTypeHasBeenSet = true;
154 m_grantType = value;
155 }
157 SetGrantType(value);
158 return *this;
159 }
161
163
166 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
167 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
168 template <typename CreatedAtT = Aws::Utils::DateTime>
169 void SetCreatedAt(CreatedAtT&& value) {
170 m_createdAtHasBeenSet = true;
171 m_createdAt = std::forward<CreatedAtT>(value);
172 }
173 template <typename CreatedAtT = Aws::Utils::DateTime>
175 SetCreatedAt(std::forward<CreatedAtT>(value));
176 return *this;
177 }
179
181
184 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
185 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
186 template <typename UpdatedAtT = Aws::Utils::DateTime>
187 void SetUpdatedAt(UpdatedAtT&& value) {
188 m_updatedAtHasBeenSet = true;
189 m_updatedAt = std::forward<UpdatedAtT>(value);
190 }
191 template <typename UpdatedAtT = Aws::Utils::DateTime>
193 SetUpdatedAt(std::forward<UpdatedAtT>(value));
194 return *this;
195 }
197 private:
198 Aws::String m_grantId;
199
200 Aws::String m_grantArn;
201
202 Aws::String m_name;
203
204 Aws::String m_domainId;
205
207
209
211
212 Aws::Utils::DateTime m_createdAt{};
213
214 Aws::Utils::DateTime m_updatedAt{};
215 bool m_grantIdHasBeenSet = false;
216 bool m_grantArnHasBeenSet = false;
217 bool m_nameHasBeenSet = false;
218 bool m_domainIdHasBeenSet = false;
219 bool m_principalHasBeenSet = false;
220 bool m_permissionHasBeenSet = false;
221 bool m_grantTypeHasBeenSet = false;
222 bool m_createdAtHasBeenSet = false;
223 bool m_updatedAtHasBeenSet = false;
224};
225
226} // namespace Model
227} // namespace CloudWatchOmni
228} // namespace Aws
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantSummary()=default
const OrganizationAccessGrantPrincipal & GetPrincipal() const
OrganizationAccessGrantSummary & WithPermission(OrganizationGrantPermission value)
OrganizationAccessGrantSummary & WithPrincipal(PrincipalT &&value)
OrganizationAccessGrantSummary & WithUpdatedAt(UpdatedAtT &&value)
OrganizationAccessGrantSummary & WithDomainId(DomainIdT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OrganizationAccessGrantSummary & WithCreatedAt(CreatedAtT &&value)
OrganizationAccessGrantSummary & WithGrantId(GrantIdT &&value)
OrganizationAccessGrantSummary & WithGrantArn(GrantArnT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OrganizationAccessGrantSummary & WithGrantType(AccessGrantType value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String