AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ContextDefinition.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
10#include <aws/verifiedpermissions/model/AttributeValue.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace VerifiedPermissions {
22namespace Model {
23
44 public:
45 AWS_VERIFIEDPERMISSIONS_API ContextDefinition() = default;
46 AWS_VERIFIEDPERMISSIONS_API ContextDefinition(Aws::Utils::Json::JsonView jsonValue);
47 AWS_VERIFIEDPERMISSIONS_API ContextDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
48 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
49
51
58 inline const Aws::Map<Aws::String, AttributeValue>& GetContextMap() const { return m_contextMap; }
59 inline bool ContextMapHasBeenSet() const { return m_contextMapHasBeenSet; }
60 template <typename ContextMapT = Aws::Map<Aws::String, AttributeValue>>
61 void SetContextMap(ContextMapT&& value) {
62 m_contextMapHasBeenSet = true;
63 m_contextMap = std::forward<ContextMapT>(value);
64 }
65 template <typename ContextMapT = Aws::Map<Aws::String, AttributeValue>>
66 ContextDefinition& WithContextMap(ContextMapT&& value) {
67 SetContextMap(std::forward<ContextMapT>(value));
68 return *this;
69 }
70 template <typename ContextMapKeyT = Aws::String, typename ContextMapValueT = AttributeValue>
71 ContextDefinition& AddContextMap(ContextMapKeyT&& key, ContextMapValueT&& value) {
72 m_contextMapHasBeenSet = true;
73 m_contextMap.emplace(std::forward<ContextMapKeyT>(key), std::forward<ContextMapValueT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetCedarJson() const { return m_cedarJson; }
86 inline bool CedarJsonHasBeenSet() const { return m_cedarJsonHasBeenSet; }
87 template <typename CedarJsonT = Aws::String>
88 void SetCedarJson(CedarJsonT&& value) {
89 m_cedarJsonHasBeenSet = true;
90 m_cedarJson = std::forward<CedarJsonT>(value);
91 }
92 template <typename CedarJsonT = Aws::String>
93 ContextDefinition& WithCedarJson(CedarJsonT&& value) {
94 SetCedarJson(std::forward<CedarJsonT>(value));
95 return *this;
96 }
98 private:
100
101 Aws::String m_cedarJson;
102 bool m_contextMapHasBeenSet = false;
103 bool m_cedarJsonHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace VerifiedPermissions
108} // namespace Aws
AWS_VERIFIEDPERMISSIONS_API ContextDefinition()=default
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
ContextDefinition & AddContextMap(ContextMapKeyT &&key, ContextMapValueT &&value)
AWS_VERIFIEDPERMISSIONS_API ContextDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API ContextDefinition(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, AttributeValue > & GetContextMap() const
ContextDefinition & WithContextMap(ContextMapT &&value)
ContextDefinition & WithCedarJson(CedarJsonT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue