AWS SDK for C++

AWS SDK for C++ Version 1.11.900

Loading...
Searching...
No Matches
OrganizationAccessGrantPrincipal.h
1
6#pragma once
7#include <aws/cloudwatchomni/CloudWatchOmni_EXPORTS.h>
8#include <aws/cloudwatchomni/model/AccessGrantPrincipalAttribute.h>
9#include <aws/cloudwatchomni/model/OrganizationGrantPrincipalType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.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
32 public:
33 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantPrincipal() = default;
34 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantPrincipal(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantPrincipal& 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 OrganizationGrantPrincipalType GetPrincipalType() const { return m_principalType; }
43 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
45 m_principalTypeHasBeenSet = true;
46 m_principalType = value;
47 }
49 SetPrincipalType(value);
50 return *this;
51 }
53
55
58 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
59 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
60 template <typename PrincipalIdT = Aws::String>
61 void SetPrincipalId(PrincipalIdT&& value) {
62 m_principalIdHasBeenSet = true;
63 m_principalId = std::forward<PrincipalIdT>(value);
64 }
65 template <typename PrincipalIdT = Aws::String>
67 SetPrincipalId(std::forward<PrincipalIdT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::Vector<AccessGrantPrincipalAttribute>& GetPrincipalAttributes() const { return m_principalAttributes; }
79 inline bool PrincipalAttributesHasBeenSet() const { return m_principalAttributesHasBeenSet; }
80 template <typename PrincipalAttributesT = Aws::Vector<AccessGrantPrincipalAttribute>>
81 void SetPrincipalAttributes(PrincipalAttributesT&& value) {
82 m_principalAttributesHasBeenSet = true;
83 m_principalAttributes = std::forward<PrincipalAttributesT>(value);
84 }
85 template <typename PrincipalAttributesT = Aws::Vector<AccessGrantPrincipalAttribute>>
87 SetPrincipalAttributes(std::forward<PrincipalAttributesT>(value));
88 return *this;
89 }
90 template <typename PrincipalAttributesT = AccessGrantPrincipalAttribute>
92 m_principalAttributesHasBeenSet = true;
93 m_principalAttributes.emplace_back(std::forward<PrincipalAttributesT>(value));
94 return *this;
95 }
97 private:
99
100 Aws::String m_principalId;
101
102 Aws::Vector<AccessGrantPrincipalAttribute> m_principalAttributes;
103 bool m_principalTypeHasBeenSet = false;
104 bool m_principalIdHasBeenSet = false;
105 bool m_principalAttributesHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CloudWatchOmni
110} // namespace Aws
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantPrincipal()=default
OrganizationAccessGrantPrincipal & WithPrincipalId(PrincipalIdT &&value)
OrganizationAccessGrantPrincipal & WithPrincipalAttributes(PrincipalAttributesT &&value)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantPrincipal & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API OrganizationAccessGrantPrincipal(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CLOUDWATCHOMNI_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OrganizationAccessGrantPrincipal & WithPrincipalType(OrganizationGrantPrincipalType value)
const Aws::Vector< AccessGrantPrincipalAttribute > & GetPrincipalAttributes() const
OrganizationAccessGrantPrincipal & AddPrincipalAttributes(PrincipalAttributesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector