AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
PutOperation.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/context/model/AnyValue.h>
9#include <aws/context/model/Entity.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/crt/cbor/Cbor.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Cbor {
19class CborValue;
20} // namespace Cbor
21} // namespace Utils
22namespace Context {
23namespace Model {
24
54 public:
55 AWS_CONTEXT_API PutOperation() = default;
56 AWS_CONTEXT_API PutOperation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
57 AWS_CONTEXT_API PutOperation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
58 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
59
61
69 inline const Entity& GetEntity() const { return m_entity; }
70 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
71 template <typename EntityT = Entity>
72 void SetEntity(EntityT&& value) {
73 m_entityHasBeenSet = true;
74 m_entity = std::forward<EntityT>(value);
75 }
76 template <typename EntityT = Entity>
77 PutOperation& WithEntity(EntityT&& value) {
78 SetEntity(std::forward<EntityT>(value));
79 return *this;
80 }
82
84
97 inline const Aws::Map<Aws::String, AnyValue>& GetProperties() const { return m_properties; }
98 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
99 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
100 void SetProperties(PropertiesT&& value) {
101 m_propertiesHasBeenSet = true;
102 m_properties = std::forward<PropertiesT>(value);
103 }
104 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
105 PutOperation& WithProperties(PropertiesT&& value) {
106 SetProperties(std::forward<PropertiesT>(value));
107 return *this;
108 }
109 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
110 PutOperation& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
111 m_propertiesHasBeenSet = true;
112 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
113 return *this;
114 }
116 private:
117 Entity m_entity;
118
120 bool m_entityHasBeenSet = false;
121 bool m_propertiesHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace Context
126} // namespace Aws
const Aws::Map< Aws::String, AnyValue > & GetProperties() const
PutOperation & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
AWS_CONTEXT_API PutOperation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
PutOperation & WithProperties(PropertiesT &&value)
PutOperation & WithEntity(EntityT &&value)
const Entity & GetEntity() const
AWS_CONTEXT_API PutOperation()=default
void SetEntity(EntityT &&value)
void SetProperties(PropertiesT &&value)
AWS_CONTEXT_API PutOperation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map