AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
DocumentAclMembership.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/DocumentAclCondition.h>
10#include <aws/qbusiness/model/MemberRelation.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
31 public:
32 AWS_QBUSINESS_API DocumentAclMembership() = default;
35 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline MemberRelation GetMemberRelation() const { return m_memberRelation; }
43 inline bool MemberRelationHasBeenSet() const { return m_memberRelationHasBeenSet; }
44 inline void SetMemberRelation(MemberRelation value) {
45 m_memberRelationHasBeenSet = true;
46 m_memberRelation = value;
47 }
49 SetMemberRelation(value);
50 return *this;
51 }
53
55
59 inline const Aws::Vector<DocumentAclCondition>& GetConditions() const { return m_conditions; }
60 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
61 template <typename ConditionsT = Aws::Vector<DocumentAclCondition>>
62 void SetConditions(ConditionsT&& value) {
63 m_conditionsHasBeenSet = true;
64 m_conditions = std::forward<ConditionsT>(value);
65 }
66 template <typename ConditionsT = Aws::Vector<DocumentAclCondition>>
68 SetConditions(std::forward<ConditionsT>(value));
69 return *this;
70 }
71 template <typename ConditionsT = DocumentAclCondition>
73 m_conditionsHasBeenSet = true;
74 m_conditions.emplace_back(std::forward<ConditionsT>(value));
75 return *this;
76 }
78 private:
80
82 bool m_memberRelationHasBeenSet = false;
83 bool m_conditionsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace QBusiness
88} // namespace Aws
AWS_QBUSINESS_API DocumentAclMembership & operator=(Aws::Utils::Json::JsonView jsonValue)
DocumentAclMembership & AddConditions(ConditionsT &&value)
DocumentAclMembership & WithMemberRelation(MemberRelation value)
DocumentAclMembership & WithConditions(ConditionsT &&value)
AWS_QBUSINESS_API DocumentAclMembership()=default
const Aws::Vector< DocumentAclCondition > & GetConditions() const
AWS_QBUSINESS_API DocumentAclMembership(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue