AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ContextDefinition.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/verifiedpermissions/model/AttributeValue.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace VerifiedPermissions
24{
25namespace Model
26{
27
48 {
49 public:
50 AWS_VERIFIEDPERMISSIONS_API ContextDefinition() = default;
51 AWS_VERIFIEDPERMISSIONS_API ContextDefinition(Aws::Utils::Json::JsonView jsonValue);
52 AWS_VERIFIEDPERMISSIONS_API ContextDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
53 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
54
55
57
64 inline const Aws::Map<Aws::String, AttributeValue>& GetContextMap() const { return m_contextMap; }
65 inline bool ContextMapHasBeenSet() const { return m_contextMapHasBeenSet; }
66 template<typename ContextMapT = Aws::Map<Aws::String, AttributeValue>>
67 void SetContextMap(ContextMapT&& value) { m_contextMapHasBeenSet = true; m_contextMap = std::forward<ContextMapT>(value); }
68 template<typename ContextMapT = Aws::Map<Aws::String, AttributeValue>>
69 ContextDefinition& WithContextMap(ContextMapT&& value) { SetContextMap(std::forward<ContextMapT>(value)); return *this;}
70 template<typename ContextMapKeyT = Aws::String, typename ContextMapValueT = AttributeValue>
71 ContextDefinition& AddContextMap(ContextMapKeyT&& key, ContextMapValueT&& value) {
72 m_contextMapHasBeenSet = true; m_contextMap.emplace(std::forward<ContextMapKeyT>(key), std::forward<ContextMapValueT>(value)); return *this;
73 }
75
77
83 inline const Aws::String& GetCedarJson() const { return m_cedarJson; }
84 inline bool CedarJsonHasBeenSet() const { return m_cedarJsonHasBeenSet; }
85 template<typename CedarJsonT = Aws::String>
86 void SetCedarJson(CedarJsonT&& value) { m_cedarJsonHasBeenSet = true; m_cedarJson = std::forward<CedarJsonT>(value); }
87 template<typename CedarJsonT = Aws::String>
88 ContextDefinition& WithCedarJson(CedarJsonT&& value) { SetCedarJson(std::forward<CedarJsonT>(value)); return *this;}
90 private:
91
93 bool m_contextMapHasBeenSet = false;
94
95 Aws::String m_cedarJson;
96 bool m_cedarJsonHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace VerifiedPermissions
101} // 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