AWS SDK for C++

AWS SDK for C++ Version 1.11.850

Loading...
Searching...
No Matches
DocumentAccessControlEntry.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/AccessControlAccess.h>
9#include <aws/bedrock-agent/model/AccessControlPrincipalType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgent {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENT_API DocumentAccessControlEntry() = default;
35 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline AccessControlPrincipalType GetType() const { return m_type; }
60 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 m_typeHasBeenSet = true;
63 m_type = value;
64 }
66 SetType(value);
67 return *this;
68 }
70
72
75 inline AccessControlAccess GetAccess() const { return m_access; }
76 inline bool AccessHasBeenSet() const { return m_accessHasBeenSet; }
77 inline void SetAccess(AccessControlAccess value) {
78 m_accessHasBeenSet = true;
79 m_access = value;
80 }
82 SetAccess(value);
83 return *this;
84 }
86 private:
87 Aws::String m_name;
88
90
92 bool m_nameHasBeenSet = false;
93 bool m_typeHasBeenSet = false;
94 bool m_accessHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace BedrockAgent
99} // namespace Aws
const Aws::String & GetName() const
AccessControlPrincipalType GetType() const
AWS_BEDROCKAGENT_API DocumentAccessControlEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
DocumentAccessControlEntry & WithName(NameT &&value)
bool AccessHasBeenSet() const
DocumentAccessControlEntry & WithType(AccessControlPrincipalType value)
AWS_BEDROCKAGENT_API DocumentAccessControlEntry(Aws::Utils::Json::JsonView jsonValue)
void SetAccess(AccessControlAccess value)
AccessControlAccess GetAccess() const
AWS_BEDROCKAGENT_API DocumentAccessControlEntry()=default
bool TypeHasBeenSet() const
DocumentAccessControlEntry & WithAccess(AccessControlAccess value)
bool NameHasBeenSet() const
void SetType(AccessControlPrincipalType value)
void SetName(NameT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue