AWS SDK for C++

AWS SDK for C++ Version 1.11.770

Loading...
Searching...
No Matches
NetworkMigrationDefinitionSummary.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#include <aws/mgn/model/SourceEnvironment.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace mgn {
22namespace Model {
23
30 public:
31 AWS_MGN_API NetworkMigrationDefinitionSummary() = default;
35
37
40 inline const Aws::String& GetNetworkMigrationDefinitionID() const { return m_networkMigrationDefinitionID; }
41 inline bool NetworkMigrationDefinitionIDHasBeenSet() const { return m_networkMigrationDefinitionIDHasBeenSet; }
42 template <typename NetworkMigrationDefinitionIDT = Aws::String>
43 void SetNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT&& value) {
44 m_networkMigrationDefinitionIDHasBeenSet = true;
45 m_networkMigrationDefinitionID = std::forward<NetworkMigrationDefinitionIDT>(value);
46 }
47 template <typename NetworkMigrationDefinitionIDT = Aws::String>
49 SetNetworkMigrationDefinitionID(std::forward<NetworkMigrationDefinitionIDT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template <typename NameT = Aws::String>
61 void SetName(NameT&& value) {
62 m_nameHasBeenSet = true;
63 m_name = std::forward<NameT>(value);
64 }
65 template <typename NameT = Aws::String>
67 SetName(std::forward<NameT>(value));
68 return *this;
69 }
71
73
76 inline SourceEnvironment GetSourceEnvironment() const { return m_sourceEnvironment; }
77 inline bool SourceEnvironmentHasBeenSet() const { return m_sourceEnvironmentHasBeenSet; }
79 m_sourceEnvironmentHasBeenSet = true;
80 m_sourceEnvironment = value;
81 }
84 return *this;
85 }
87
89
92 inline const Aws::String& GetArn() const { return m_arn; }
93 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
94 template <typename ArnT = Aws::String>
95 void SetArn(ArnT&& value) {
96 m_arnHasBeenSet = true;
97 m_arn = std::forward<ArnT>(value);
98 }
99 template <typename ArnT = Aws::String>
101 SetArn(std::forward<ArnT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
113 void SetTags(TagsT&& value) {
114 m_tagsHasBeenSet = true;
115 m_tags = std::forward<TagsT>(value);
116 }
117 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
119 SetTags(std::forward<TagsT>(value));
120 return *this;
121 }
122 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
123 NetworkMigrationDefinitionSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Map<Aws::String, Aws::String>& GetScopeTags() const { return m_scopeTags; }
135 inline bool ScopeTagsHasBeenSet() const { return m_scopeTagsHasBeenSet; }
136 template <typename ScopeTagsT = Aws::Map<Aws::String, Aws::String>>
137 void SetScopeTags(ScopeTagsT&& value) {
138 m_scopeTagsHasBeenSet = true;
139 m_scopeTags = std::forward<ScopeTagsT>(value);
140 }
141 template <typename ScopeTagsT = Aws::Map<Aws::String, Aws::String>>
143 SetScopeTags(std::forward<ScopeTagsT>(value));
144 return *this;
145 }
146 template <typename ScopeTagsKeyT = Aws::String, typename ScopeTagsValueT = Aws::String>
147 NetworkMigrationDefinitionSummary& AddScopeTags(ScopeTagsKeyT&& key, ScopeTagsValueT&& value) {
148 m_scopeTagsHasBeenSet = true;
149 m_scopeTags.emplace(std::forward<ScopeTagsKeyT>(key), std::forward<ScopeTagsValueT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_networkMigrationDefinitionID;
155
156 Aws::String m_name;
157
159
160 Aws::String m_arn;
161
163
165 bool m_networkMigrationDefinitionIDHasBeenSet = false;
166 bool m_nameHasBeenSet = false;
167 bool m_sourceEnvironmentHasBeenSet = false;
168 bool m_arnHasBeenSet = false;
169 bool m_tagsHasBeenSet = false;
170 bool m_scopeTagsHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace mgn
175} // namespace Aws
AWS_MGN_API NetworkMigrationDefinitionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkMigrationDefinitionSummary & WithArn(ArnT &&value)
AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkMigrationDefinitionSummary & WithName(NameT &&value)
NetworkMigrationDefinitionSummary & WithSourceEnvironment(SourceEnvironment value)
void SetNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT &&value)
NetworkMigrationDefinitionSummary & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetScopeTags() const
NetworkMigrationDefinitionSummary & AddScopeTags(ScopeTagsKeyT &&key, ScopeTagsValueT &&value)
AWS_MGN_API NetworkMigrationDefinitionSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
NetworkMigrationDefinitionSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
NetworkMigrationDefinitionSummary & WithScopeTags(ScopeTagsT &&value)
NetworkMigrationDefinitionSummary & WithNetworkMigrationDefinitionID(NetworkMigrationDefinitionIDT &&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