AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
DeleteOperation.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
32 public:
33 AWS_CONTEXT_API DeleteOperation() = default;
34 AWS_CONTEXT_API DeleteOperation(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
35 AWS_CONTEXT_API DeleteOperation& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
36 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
37
39
42 inline const Entity& GetEntity() const { return m_entity; }
43 inline bool EntityHasBeenSet() const { return m_entityHasBeenSet; }
44 template <typename EntityT = Entity>
45 void SetEntity(EntityT&& value) {
46 m_entityHasBeenSet = true;
47 m_entity = std::forward<EntityT>(value);
48 }
49 template <typename EntityT = Entity>
50 DeleteOperation& WithEntity(EntityT&& value) {
51 SetEntity(std::forward<EntityT>(value));
52 return *this;
53 }
55
57
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 DeleteOperation& WithProperties(PropertiesT&& value) {
75 SetProperties(std::forward<PropertiesT>(value));
76 return *this;
77 }
78 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = AnyValue>
79 DeleteOperation& 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
void SetProperties(PropertiesT &&value)
AWS_CONTEXT_API DeleteOperation & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DeleteOperation & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
DeleteOperation & WithEntity(EntityT &&value)
AWS_CONTEXT_API DeleteOperation(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DeleteOperation & WithProperties(PropertiesT &&value)
AWS_CONTEXT_API DeleteOperation()=default
const Aws::Map< Aws::String, AnyValue > & GetProperties() const
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