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>
23namespace CloudWatchOmni {
36 AWS_CLOUDWATCHOMNI_API
void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder)
const;
44 template <
typename GrantIdT = Aws::String>
46 m_grantIdHasBeenSet =
true;
47 m_grantId = std::forward<GrantIdT>(value);
49 template <
typename GrantIdT = Aws::String>
62 template <
typename GrantArnT = Aws::String>
64 m_grantArnHasBeenSet =
true;
65 m_grantArn = std::forward<GrantArnT>(value);
67 template <
typename GrantArnT = Aws::String>
80 template <
typename NameT = Aws::String>
82 m_nameHasBeenSet =
true;
83 m_name = std::forward<NameT>(value);
85 template <
typename NameT = Aws::String>
87 SetName(std::forward<NameT>(value));
98 template <
typename DomainIdT = Aws::String>
100 m_domainIdHasBeenSet =
true;
101 m_domainId = std::forward<DomainIdT>(value);
103 template <
typename DomainIdT = Aws::String>
116 template <
typename PrincipalT = OrganizationAccessGrantPrincipal>
118 m_principalHasBeenSet =
true;
119 m_principal = std::forward<PrincipalT>(value);
121 template <
typename PrincipalT = OrganizationAccessGrantPrincipal>
135 m_permissionHasBeenSet =
true;
136 m_permission = value;
151 m_grantTypeHasBeenSet =
true;
166 template <
typename CreatedByT = Aws::String>
168 m_createdByHasBeenSet =
true;
169 m_createdBy = std::forward<CreatedByT>(value);
171 template <
typename CreatedByT = Aws::String>
184 template <
typename CreatedAtT = Aws::Utils::DateTime>
186 m_createdAtHasBeenSet =
true;
187 m_createdAt = std::forward<CreatedAtT>(value);
189 template <
typename CreatedAtT = Aws::Utils::DateTime>
202 template <
typename UpdatedAtT = Aws::Utils::DateTime>
204 m_updatedAtHasBeenSet =
true;
205 m_updatedAt = std::forward<UpdatedAtT>(value);
207 template <
typename UpdatedAtT = Aws::Utils::DateTime>
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;
const OrganizationAccessGrantPrincipal & GetPrincipal() const
OrganizationAccessGrant & WithName(NameT &&value)
void SetDomainId(DomainIdT &&value)
const Aws::String & GetGrantId() const
bool CreatedAtHasBeenSet() const
OrganizationAccessGrant & WithCreatedAt(CreatedAtT &&value)
bool DomainIdHasBeenSet() const
void SetName(NameT &&value)
const Aws::String & GetGrantArn() const
void SetPrincipal(PrincipalT &&value)
void SetCreatedBy(CreatedByT &&value)
void SetGrantId(GrantIdT &&value)
OrganizationAccessGrant & WithPermission(OrganizationGrantPermission value)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetGrantType(AccessGrantType value)
bool NameHasBeenSet() const
void SetUpdatedAt(UpdatedAtT &&value)
bool PermissionHasBeenSet() const
bool GrantTypeHasBeenSet() const
OrganizationAccessGrant & WithDomainId(DomainIdT &&value)
void SetCreatedAt(CreatedAtT &&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)
const Aws::String & GetName() const
OrganizationAccessGrant & WithGrantType(AccessGrantType value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetDomainId() const
OrganizationAccessGrant & WithGrantId(GrantIdT &&value)
bool GrantIdHasBeenSet() const
bool CreatedByHasBeenSet() const
OrganizationGrantPermission GetPermission() const
OrganizationAccessGrant & WithPrincipal(PrincipalT &&value)
bool GrantArnHasBeenSet() const
const Aws::String & GetCreatedBy() const
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrant()=default
AccessGrantType GetGrantType() const
void SetGrantArn(GrantArnT &&value)
bool UpdatedAtHasBeenSet() const
OrganizationAccessGrant & WithCreatedBy(CreatedByT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
bool PrincipalHasBeenSet() const
OrganizationGrantPermission
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String