AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AccessControl.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/qbusiness/QBusiness_EXPORTS.h>
9#include <aws/qbusiness/model/MemberRelation.h>
10#include <aws/qbusiness/model/Principal.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness {
22namespace Model {
23
32 public:
33 AWS_QBUSINESS_API AccessControl() = default;
34 AWS_QBUSINESS_API AccessControl(Aws::Utils::Json::JsonView jsonValue);
35 AWS_QBUSINESS_API AccessControl& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<Principal>& GetPrincipals() const { return m_principals; }
45 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
46 template <typename PrincipalsT = Aws::Vector<Principal>>
47 void SetPrincipals(PrincipalsT&& value) {
48 m_principalsHasBeenSet = true;
49 m_principals = std::forward<PrincipalsT>(value);
50 }
51 template <typename PrincipalsT = Aws::Vector<Principal>>
52 AccessControl& WithPrincipals(PrincipalsT&& value) {
53 SetPrincipals(std::forward<PrincipalsT>(value));
54 return *this;
55 }
56 template <typename PrincipalsT = Principal>
57 AccessControl& AddPrincipals(PrincipalsT&& value) {
58 m_principalsHasBeenSet = true;
59 m_principals.emplace_back(std::forward<PrincipalsT>(value));
60 return *this;
61 }
63
65
68 inline MemberRelation GetMemberRelation() const { return m_memberRelation; }
69 inline bool MemberRelationHasBeenSet() const { return m_memberRelationHasBeenSet; }
70 inline void SetMemberRelation(MemberRelation value) {
71 m_memberRelationHasBeenSet = true;
72 m_memberRelation = value;
73 }
75 SetMemberRelation(value);
76 return *this;
77 }
79 private:
80 Aws::Vector<Principal> m_principals;
81
83 bool m_principalsHasBeenSet = false;
84 bool m_memberRelationHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace QBusiness
89} // namespace Aws
void SetPrincipals(PrincipalsT &&value)
AWS_QBUSINESS_API AccessControl(Aws::Utils::Json::JsonView jsonValue)
AccessControl & WithPrincipals(PrincipalsT &&value)
AWS_QBUSINESS_API AccessControl()=default
const Aws::Vector< Principal > & GetPrincipals() const
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
MemberRelation GetMemberRelation() const
AccessControl & AddPrincipals(PrincipalsT &&value)
AccessControl & WithMemberRelation(MemberRelation value)
AWS_QBUSINESS_API AccessControl & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetMemberRelation(MemberRelation value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue