AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentAclMembership.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/MemberRelation.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/qbusiness/model/DocumentAclCondition.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
35 {
36 public:
37 AWS_QBUSINESS_API DocumentAclMembership() = default;
40 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline MemberRelation GetMemberRelation() const { return m_memberRelation; }
49 inline bool MemberRelationHasBeenSet() const { return m_memberRelationHasBeenSet; }
50 inline void SetMemberRelation(MemberRelation value) { m_memberRelationHasBeenSet = true; m_memberRelation = value; }
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) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
63 template<typename ConditionsT = Aws::Vector<DocumentAclCondition>>
64 DocumentAclMembership& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
65 template<typename ConditionsT = DocumentAclCondition>
66 DocumentAclMembership& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
68 private:
69
71 bool m_memberRelationHasBeenSet = false;
72
74 bool m_conditionsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace QBusiness
79} // 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