AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DocumentAcl.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/model/DocumentAclMembership.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace QBusiness
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_QBUSINESS_API DocumentAcl() = default;
38 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const DocumentAclMembership& GetAllowlist() const { return m_allowlist; }
47 inline bool AllowlistHasBeenSet() const { return m_allowlistHasBeenSet; }
48 template<typename AllowlistT = DocumentAclMembership>
49 void SetAllowlist(AllowlistT&& value) { m_allowlistHasBeenSet = true; m_allowlist = std::forward<AllowlistT>(value); }
50 template<typename AllowlistT = DocumentAclMembership>
51 DocumentAcl& WithAllowlist(AllowlistT&& value) { SetAllowlist(std::forward<AllowlistT>(value)); return *this;}
53
55
60 inline const DocumentAclMembership& GetDenyList() const { return m_denyList; }
61 inline bool DenyListHasBeenSet() const { return m_denyListHasBeenSet; }
62 template<typename DenyListT = DocumentAclMembership>
63 void SetDenyList(DenyListT&& value) { m_denyListHasBeenSet = true; m_denyList = std::forward<DenyListT>(value); }
64 template<typename DenyListT = DocumentAclMembership>
65 DocumentAcl& WithDenyList(DenyListT&& value) { SetDenyList(std::forward<DenyListT>(value)); return *this;}
67 private:
68
69 DocumentAclMembership m_allowlist;
70 bool m_allowlistHasBeenSet = false;
71
72 DocumentAclMembership m_denyList;
73 bool m_denyListHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace QBusiness
78} // namespace Aws
AWS_QBUSINESS_API DocumentAcl()=default
AWS_QBUSINESS_API DocumentAcl & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QBUSINESS_API DocumentAcl(Aws::Utils::Json::JsonView jsonValue)
void SetAllowlist(AllowlistT &&value)
Definition DocumentAcl.h:49
DocumentAcl & WithDenyList(DenyListT &&value)
Definition DocumentAcl.h:65
void SetDenyList(DenyListT &&value)
Definition DocumentAcl.h:63
AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const
const DocumentAclMembership & GetDenyList() const
Definition DocumentAcl.h:60
const DocumentAclMembership & GetAllowlist() const
Definition DocumentAcl.h:46
DocumentAcl & WithAllowlist(AllowlistT &&value)
Definition DocumentAcl.h:51
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue