AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
DocumentAclCondition.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/DocumentAclGroup.h>
9#include <aws/bedrock-agent-runtime/model/DocumentAclMemberRelation.h>
10#include <aws/bedrock-agent-runtime/model/DocumentAclUser.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgentRuntime {
23namespace Model {
24
33 public:
34 AWS_BEDROCKAGENTRUNTIME_API DocumentAclCondition() = default;
37 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline DocumentAclMemberRelation GetConditionOperator() const { return m_conditionOperator; }
47 inline bool ConditionOperatorHasBeenSet() const { return m_conditionOperatorHasBeenSet; }
49 m_conditionOperatorHasBeenSet = true;
50 m_conditionOperator = value;
51 }
54 return *this;
55 }
57
59
62 inline const Aws::Vector<DocumentAclGroup>& GetGroups() const { return m_groups; }
63 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
64 template <typename GroupsT = Aws::Vector<DocumentAclGroup>>
65 void SetGroups(GroupsT&& value) {
66 m_groupsHasBeenSet = true;
67 m_groups = std::forward<GroupsT>(value);
68 }
69 template <typename GroupsT = Aws::Vector<DocumentAclGroup>>
71 SetGroups(std::forward<GroupsT>(value));
72 return *this;
73 }
74 template <typename GroupsT = DocumentAclGroup>
76 m_groupsHasBeenSet = true;
77 m_groups.emplace_back(std::forward<GroupsT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<DocumentAclUser>& GetUsers() const { return m_users; }
87 inline bool UsersHasBeenSet() const { return m_usersHasBeenSet; }
88 template <typename UsersT = Aws::Vector<DocumentAclUser>>
89 void SetUsers(UsersT&& value) {
90 m_usersHasBeenSet = true;
91 m_users = std::forward<UsersT>(value);
92 }
93 template <typename UsersT = Aws::Vector<DocumentAclUser>>
95 SetUsers(std::forward<UsersT>(value));
96 return *this;
97 }
98 template <typename UsersT = DocumentAclUser>
100 m_usersHasBeenSet = true;
101 m_users.emplace_back(std::forward<UsersT>(value));
102 return *this;
103 }
105 private:
107
109
111 bool m_conditionOperatorHasBeenSet = false;
112 bool m_groupsHasBeenSet = false;
113 bool m_usersHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace BedrockAgentRuntime
118} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DocumentAclGroup > & GetGroups() const
const Aws::Vector< DocumentAclUser > & GetUsers() const
DocumentAclCondition & AddGroups(GroupsT &&value)
AWS_BEDROCKAGENTRUNTIME_API DocumentAclCondition()=default
AWS_BEDROCKAGENTRUNTIME_API DocumentAclCondition(Aws::Utils::Json::JsonView jsonValue)
DocumentAclCondition & WithConditionOperator(DocumentAclMemberRelation value)
void SetConditionOperator(DocumentAclMemberRelation value)
DocumentAclCondition & WithGroups(GroupsT &&value)
AWS_BEDROCKAGENTRUNTIME_API DocumentAclCondition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue