AWS SDK for C++

AWS SDK for C++ Version 1.11.876

Loading...
Searching...
No Matches
DocumentAclMembership.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/DocumentAclCondition.h>
9#include <aws/bedrock-agent-runtime/model/DocumentAclMemberRelation.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTRUNTIME_API DocumentAclMembership() = default;
35 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<DocumentAclCondition>& GetConditions() const { return m_conditions; }
42 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
43 template <typename ConditionsT = Aws::Vector<DocumentAclCondition>>
44 void SetConditions(ConditionsT&& value) {
45 m_conditionsHasBeenSet = true;
46 m_conditions = std::forward<ConditionsT>(value);
47 }
48 template <typename ConditionsT = Aws::Vector<DocumentAclCondition>>
50 SetConditions(std::forward<ConditionsT>(value));
51 return *this;
52 }
53 template <typename ConditionsT = DocumentAclCondition>
55 m_conditionsHasBeenSet = true;
56 m_conditions.emplace_back(std::forward<ConditionsT>(value));
57 return *this;
58 }
60
62
66 inline DocumentAclMemberRelation GetMemberRelation() const { return m_memberRelation; }
67 inline bool MemberRelationHasBeenSet() const { return m_memberRelationHasBeenSet; }
69 m_memberRelationHasBeenSet = true;
70 m_memberRelation = value;
71 }
73 SetMemberRelation(value);
74 return *this;
75 }
77 private:
79
81 bool m_conditionsHasBeenSet = false;
82 bool m_memberRelationHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace BedrockAgentRuntime
87} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API DocumentAclMembership & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DocumentAclCondition > & GetConditions() const
AWS_BEDROCKAGENTRUNTIME_API DocumentAclMembership(Aws::Utils::Json::JsonView jsonValue)
void SetMemberRelation(DocumentAclMemberRelation value)
DocumentAclMembership & WithMemberRelation(DocumentAclMemberRelation value)
AWS_BEDROCKAGENTRUNTIME_API DocumentAclMembership()=default
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAclMembership & AddConditions(ConditionsT &&value)
DocumentAclMembership & WithConditions(ConditionsT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue