AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
UpdateOperation.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/mgn/Mgn_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace mgn {
21namespace Model {
22
30 public:
31 AWS_MGN_API UpdateOperation() = default;
35
37
40 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
41 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
42 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
43 void SetProperties(PropertiesT&& value) {
44 m_propertiesHasBeenSet = true;
45 m_properties = std::forward<PropertiesT>(value);
46 }
47 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
48 UpdateOperation& WithProperties(PropertiesT&& value) {
49 SetProperties(std::forward<PropertiesT>(value));
50 return *this;
51 }
52 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
53 UpdateOperation& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
54 m_propertiesHasBeenSet = true;
55 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
56 return *this;
57 }
59 private:
61 bool m_propertiesHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace mgn
66} // namespace Aws
void SetProperties(PropertiesT &&value)
UpdateOperation & WithProperties(PropertiesT &&value)
AWS_MGN_API UpdateOperation(Aws::Utils::Json::JsonView jsonValue)
AWS_MGN_API UpdateOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetProperties() const
AWS_MGN_API UpdateOperation()=default
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
UpdateOperation & AddProperties(PropertiesKeyT &&key, PropertiesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Json::JsonValue JsonValue