AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
DocumentAcl.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/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 BedrockAgentRuntime {
20namespace Model {
21
30 public:
31 AWS_BEDROCKAGENTRUNTIME_API DocumentAcl() = default;
32 AWS_BEDROCKAGENTRUNTIME_API DocumentAcl(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
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
58 inline const DocumentAclMembership& GetDenyList() const { return m_denyList; }
59 inline bool DenyListHasBeenSet() const { return m_denyListHasBeenSet; }
60 template <typename DenyListT = DocumentAclMembership>
61 void SetDenyList(DenyListT&& value) {
62 m_denyListHasBeenSet = true;
63 m_denyList = std::forward<DenyListT>(value);
64 }
65 template <typename DenyListT = DocumentAclMembership>
67 SetDenyList(std::forward<DenyListT>(value));
68 return *this;
69 }
71 private:
72 DocumentAclMembership m_allowList;
73
74 DocumentAclMembership m_denyList;
75 bool m_allowListHasBeenSet = false;
76 bool m_denyListHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace BedrockAgentRuntime
81} // namespace Aws
DocumentAcl & WithDenyList(DenyListT &&value)
Definition DocumentAcl.h:66
AWS_BEDROCKAGENTRUNTIME_API DocumentAcl()=default
AWS_BEDROCKAGENTRUNTIME_API DocumentAcl(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAcl & WithAllowList(AllowListT &&value)
Definition DocumentAcl.h:48
const DocumentAclMembership & GetDenyList() const
Definition DocumentAcl.h:58
AWS_BEDROCKAGENTRUNTIME_API DocumentAcl & operator=(Aws::Utils::Json::JsonView jsonValue)
const DocumentAclMembership & GetAllowList() const
Definition DocumentAcl.h:40
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue