AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 UpdateOperation& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline bool GetExcluded() const { return m_excluded; }
59 inline bool ExcludedHasBeenSet() const { return m_excludedHasBeenSet; }
60 inline void SetExcluded(bool value) {
61 m_excludedHasBeenSet = true;
62 m_excluded = value;
63 }
64 inline UpdateOperation& WithExcluded(bool value) {
65 SetExcluded(value);
66 return *this;
67 }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetProperties() const { return m_properties; }
75 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
76 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
77 void SetProperties(PropertiesT&& value) {
78 m_propertiesHasBeenSet = true;
79 m_properties = std::forward<PropertiesT>(value);
80 }
81 template <typename PropertiesT = Aws::Map<Aws::String, Aws::String>>
82 UpdateOperation& WithProperties(PropertiesT&& value) {
83 SetProperties(std::forward<PropertiesT>(value));
84 return *this;
85 }
86 template <typename PropertiesKeyT = Aws::String, typename PropertiesValueT = Aws::String>
87 UpdateOperation& AddProperties(PropertiesKeyT&& key, PropertiesValueT&& value) {
88 m_propertiesHasBeenSet = true;
89 m_properties.emplace(std::forward<PropertiesKeyT>(key), std::forward<PropertiesValueT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_name;
95
96 bool m_excluded{false};
97
99 bool m_nameHasBeenSet = false;
100 bool m_excludedHasBeenSet = false;
101 bool m_propertiesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace mgn
106} // namespace Aws
const Aws::String & GetName() const
void SetProperties(PropertiesT &&value)
UpdateOperation & WithProperties(PropertiesT &&value)
UpdateOperation & WithName(NameT &&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
UpdateOperation & WithExcluded(bool value)
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
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue