AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccessControl.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/qbusiness/model/MemberRelation.h>
10#include <aws/qbusiness/model/Principal.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace QBusiness
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_QBUSINESS_API AccessControl();
39 AWS_QBUSINESS_API AccessControl(Aws::Utils::Json::JsonView jsonValue);
40 AWS_QBUSINESS_API AccessControl& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<Principal>& GetPrincipals() const{ return m_principals; }
51 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
52 inline void SetPrincipals(const Aws::Vector<Principal>& value) { m_principalsHasBeenSet = true; m_principals = value; }
53 inline void SetPrincipals(Aws::Vector<Principal>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
54 inline AccessControl& WithPrincipals(const Aws::Vector<Principal>& value) { SetPrincipals(value); return *this;}
55 inline AccessControl& WithPrincipals(Aws::Vector<Principal>&& value) { SetPrincipals(std::move(value)); return *this;}
56 inline AccessControl& AddPrincipals(const Principal& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
57 inline AccessControl& AddPrincipals(Principal&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
59
61
64 inline const MemberRelation& GetMemberRelation() const{ return m_memberRelation; }
65 inline bool MemberRelationHasBeenSet() const { return m_memberRelationHasBeenSet; }
66 inline void SetMemberRelation(const MemberRelation& value) { m_memberRelationHasBeenSet = true; m_memberRelation = value; }
67 inline void SetMemberRelation(MemberRelation&& value) { m_memberRelationHasBeenSet = true; m_memberRelation = std::move(value); }
68 inline AccessControl& WithMemberRelation(const MemberRelation& value) { SetMemberRelation(value); return *this;}
69 inline AccessControl& WithMemberRelation(MemberRelation&& value) { SetMemberRelation(std::move(value)); return *this;}
71 private:
72
73 Aws::Vector<Principal> m_principals;
74 bool m_principalsHasBeenSet = false;
75
76 MemberRelation m_memberRelation;
77 bool m_memberRelationHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace QBusiness
82} // namespace Aws
AWS_QBUSINESS_API AccessControl(Aws::Utils::Json::JsonView jsonValue)
AccessControl & AddPrincipals(Principal &&value)
AccessControl & WithPrincipals(Aws::Vector< Principal > &&value)
const MemberRelation & GetMemberRelation() const
void SetMemberRelation(const MemberRelation &value)
const Aws::Vector< Principal > & GetPrincipals() const
AccessControl & WithMemberRelation(const MemberRelation &value)
void SetPrincipals(const Aws::Vector< Principal > &value)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
AccessControl & WithMemberRelation(MemberRelation &&value)
void SetMemberRelation(MemberRelation &&value)
AccessControl & AddPrincipals(const Principal &value)
AccessControl & WithPrincipals(const Aws::Vector< Principal > &value)
void SetPrincipals(Aws::Vector< Principal > &&value)
AWS_QBUSINESS_API AccessControl & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue