AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
UpdateOperation.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
34 public:
35 AWS_CONTEXT_API UpdateOperation() = default;
36 AWS_CONTEXT_API UpdateOperation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_CONTEXT_API UpdateOperation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
46 inline const Entity& GetEntity() const { return m_entity; }
47 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
48 template <typename EntityT = Entity>
49 void SetEntity(EntityT&& value) {
50 m_entityHasBeenSet = true;
51 m_entity = std::forward<EntityT>(value);
52 }
53 template <typename EntityT = Entity>
54 UpdateOperation& WithEntity(EntityT&& value) {
55 SetEntity(std::forward<EntityT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Map<Aws::String, AnyValue>& GetProperties() const { return m_properties; }
67 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
68 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
69 void SetProperties(PropertiesT&& value) {
70 m_propertiesHasBeenSet = true;
71 m_properties = std::forward<PropertiesT>(value);
72 }
73 template <typename PropertiesT = Aws::Map<Aws::String, AnyValue>>
74 UpdateOperation& WithProperties(PropertiesT&& value) {
75 SetProperties(std::forward<PropertiesT>(value));
76 return *this;
77 }
78 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
79 UpdateOperation& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
80 m_propertiesHasBeenSet = true;
81 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
82 return *this;
83 }
85 private:
86 Entity m_entity;
87
89 bool m_entityHasBeenSet = false;
90 bool m_propertiesHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace Context
95} // namespace Aws
UpdateOperation & WithProperties(PropertiesT &&value)
UpdateOperation & WithEntity(EntityT &&value)
AWS_CONTEXT_API UpdateOperation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API UpdateOperation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Map< Aws::String, AnyValue > & GetProperties() const
void SetProperties(PropertiesT &&value)
AWS_CONTEXT_API UpdateOperation()=default
UpdateOperation & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
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