AWS SDK for C++

AWS SDK for C++ Version 1.11.740

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QBusiness {
20namespace Model {
21
29 public:
30 AWS_QBUSINESS_API DocumentAcl() = default;
33 AWS_QBUSINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const DocumentAclMembership& GetAllowlist() const { return m_allowlist; }
41 inline bool AllowlistHasBeenSet() const { return m_allowlistHasBeenSet; }
42 template <typename AllowlistT = DocumentAclMembership>
43 void SetAllowlist(AllowlistT&& value) {
44 m_allowlistHasBeenSet = true;
45 m_allowlist = std::forward<AllowlistT>(value);
46 }
47 template <typename AllowlistT = DocumentAclMembership>
49 SetAllowlist(std::forward<AllowlistT>(value));
50 return *this;
51 }
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) {
64 m_denyListHasBeenSet = true;
65 m_denyList = std::forward<DenyListT>(value);
66 }
67 template <typename DenyListT = DocumentAclMembership>
69 SetDenyList(std::forward<DenyListT>(value));
70 return *this;
71 }
73 private:
74 DocumentAclMembership m_allowlist;
75
76 DocumentAclMembership m_denyList;
77 bool m_allowlistHasBeenSet = false;
78 bool m_denyListHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace QBusiness
83} // 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:43
DocumentAcl & WithDenyList(DenyListT &&value)
Definition DocumentAcl.h:68
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:40
DocumentAcl & WithAllowlist(AllowlistT &&value)
Definition DocumentAcl.h:48
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue