AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
NetworkResource.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkManager
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_NETWORKMANAGER_API NetworkResource();
39 AWS_NETWORKMANAGER_API NetworkResource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_NETWORKMANAGER_API NetworkResource& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetRegisteredGatewayArn() const{ return m_registeredGatewayArn; }
49 inline bool RegisteredGatewayArnHasBeenSet() const { return m_registeredGatewayArnHasBeenSet; }
50 inline void SetRegisteredGatewayArn(const Aws::String& value) { m_registeredGatewayArnHasBeenSet = true; m_registeredGatewayArn = value; }
51 inline void SetRegisteredGatewayArn(Aws::String&& value) { m_registeredGatewayArnHasBeenSet = true; m_registeredGatewayArn = std::move(value); }
52 inline void SetRegisteredGatewayArn(const char* value) { m_registeredGatewayArnHasBeenSet = true; m_registeredGatewayArn.assign(value); }
53 inline NetworkResource& WithRegisteredGatewayArn(const Aws::String& value) { SetRegisteredGatewayArn(value); return *this;}
54 inline NetworkResource& WithRegisteredGatewayArn(Aws::String&& value) { SetRegisteredGatewayArn(std::move(value)); return *this;}
55 inline NetworkResource& WithRegisteredGatewayArn(const char* value) { SetRegisteredGatewayArn(value); return *this;}
57
59
62 inline const Aws::String& GetCoreNetworkId() const{ return m_coreNetworkId; }
63 inline bool CoreNetworkIdHasBeenSet() const { return m_coreNetworkIdHasBeenSet; }
64 inline void SetCoreNetworkId(const Aws::String& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = value; }
65 inline void SetCoreNetworkId(Aws::String&& value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId = std::move(value); }
66 inline void SetCoreNetworkId(const char* value) { m_coreNetworkIdHasBeenSet = true; m_coreNetworkId.assign(value); }
67 inline NetworkResource& WithCoreNetworkId(const Aws::String& value) { SetCoreNetworkId(value); return *this;}
68 inline NetworkResource& WithCoreNetworkId(Aws::String&& value) { SetCoreNetworkId(std::move(value)); return *this;}
69 inline NetworkResource& WithCoreNetworkId(const char* value) { SetCoreNetworkId(value); return *this;}
71
73
76 inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
77 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
78 inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
79 inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
80 inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
81 inline NetworkResource& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
82 inline NetworkResource& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
83 inline NetworkResource& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
85
87
90 inline const Aws::String& GetAccountId() const{ return m_accountId; }
91 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
92 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
93 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
94 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
95 inline NetworkResource& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
96 inline NetworkResource& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
97 inline NetworkResource& WithAccountId(const char* value) { SetAccountId(value); return *this;}
99
101
118 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
119 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
120 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
121 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
122 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
123 inline NetworkResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
124 inline NetworkResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
125 inline NetworkResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
127
129
132 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
133 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
134 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
135 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
136 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
137 inline NetworkResource& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
138 inline NetworkResource& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
139 inline NetworkResource& WithResourceId(const char* value) { SetResourceId(value); return *this;}
141
143
146 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
147 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
148 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
149 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
150 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
151 inline NetworkResource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
152 inline NetworkResource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
153 inline NetworkResource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
155
157
161 inline const Aws::String& GetDefinition() const{ return m_definition; }
162 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
163 inline void SetDefinition(const Aws::String& value) { m_definitionHasBeenSet = true; m_definition = value; }
164 inline void SetDefinition(Aws::String&& value) { m_definitionHasBeenSet = true; m_definition = std::move(value); }
165 inline void SetDefinition(const char* value) { m_definitionHasBeenSet = true; m_definition.assign(value); }
166 inline NetworkResource& WithDefinition(const Aws::String& value) { SetDefinition(value); return *this;}
167 inline NetworkResource& WithDefinition(Aws::String&& value) { SetDefinition(std::move(value)); return *this;}
168 inline NetworkResource& WithDefinition(const char* value) { SetDefinition(value); return *this;}
170
172
175 inline const Aws::Utils::DateTime& GetDefinitionTimestamp() const{ return m_definitionTimestamp; }
176 inline bool DefinitionTimestampHasBeenSet() const { return m_definitionTimestampHasBeenSet; }
177 inline void SetDefinitionTimestamp(const Aws::Utils::DateTime& value) { m_definitionTimestampHasBeenSet = true; m_definitionTimestamp = value; }
178 inline void SetDefinitionTimestamp(Aws::Utils::DateTime&& value) { m_definitionTimestampHasBeenSet = true; m_definitionTimestamp = std::move(value); }
180 inline NetworkResource& WithDefinitionTimestamp(Aws::Utils::DateTime&& value) { SetDefinitionTimestamp(std::move(value)); return *this;}
182
184
187 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
188 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
189 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
190 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
191 inline NetworkResource& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
192 inline NetworkResource& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
193 inline NetworkResource& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
194 inline NetworkResource& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
196
198
201 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
202 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
203 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
204 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
205 inline NetworkResource& WithMetadata(const Aws::Map<Aws::String, Aws::String>& value) { SetMetadata(value); return *this;}
206 inline NetworkResource& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
207 inline NetworkResource& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
208 inline NetworkResource& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
209 inline NetworkResource& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
210 inline NetworkResource& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
211 inline NetworkResource& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
212 inline NetworkResource& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
213 inline NetworkResource& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
215 private:
216
217 Aws::String m_registeredGatewayArn;
218 bool m_registeredGatewayArnHasBeenSet = false;
219
220 Aws::String m_coreNetworkId;
221 bool m_coreNetworkIdHasBeenSet = false;
222
223 Aws::String m_awsRegion;
224 bool m_awsRegionHasBeenSet = false;
225
226 Aws::String m_accountId;
227 bool m_accountIdHasBeenSet = false;
228
229 Aws::String m_resourceType;
230 bool m_resourceTypeHasBeenSet = false;
231
232 Aws::String m_resourceId;
233 bool m_resourceIdHasBeenSet = false;
234
235 Aws::String m_resourceArn;
236 bool m_resourceArnHasBeenSet = false;
237
238 Aws::String m_definition;
239 bool m_definitionHasBeenSet = false;
240
241 Aws::Utils::DateTime m_definitionTimestamp;
242 bool m_definitionTimestampHasBeenSet = false;
243
244 Aws::Vector<Tag> m_tags;
245 bool m_tagsHasBeenSet = false;
246
248 bool m_metadataHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace NetworkManager
253} // namespace Aws
NetworkResource & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
NetworkResource & WithCoreNetworkId(const Aws::String &value)
NetworkResource & WithResourceId(const char *value)
NetworkResource & WithAwsRegion(const char *value)
NetworkResource & AddMetadata(Aws::String &&key, Aws::String &&value)
NetworkResource & WithDefinitionTimestamp(Aws::Utils::DateTime &&value)
void SetResourceId(const Aws::String &value)
NetworkResource & AddMetadata(Aws::String &&key, const Aws::String &value)
const Aws::String & GetCoreNetworkId() const
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetResourceType() const
NetworkResource & WithResourceArn(Aws::String &&value)
void SetAwsRegion(const Aws::String &value)
NetworkResource & WithDefinition(const Aws::String &value)
void SetRegisteredGatewayArn(const Aws::String &value)
void SetDefinitionTimestamp(const Aws::Utils::DateTime &value)
NetworkResource & WithResourceArn(const Aws::String &value)
NetworkResource & WithDefinition(const char *value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
AWS_NETWORKMANAGER_API NetworkResource()
NetworkResource & AddMetadata(const Aws::String &key, Aws::String &&value)
NetworkResource & WithResourceId(const Aws::String &value)
void SetCoreNetworkId(const Aws::String &value)
NetworkResource & WithRegisteredGatewayArn(const Aws::String &value)
void SetDefinitionTimestamp(Aws::Utils::DateTime &&value)
NetworkResource & AddMetadata(const Aws::String &key, const Aws::String &value)
NetworkResource & WithAccountId(Aws::String &&value)
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
NetworkResource & WithRegisteredGatewayArn(const char *value)
NetworkResource & WithResourceId(Aws::String &&value)
NetworkResource & WithAccountId(const Aws::String &value)
NetworkResource & AddTags(Tag &&value)
void SetAccountId(const Aws::String &value)
const Aws::Vector< Tag > & GetTags() const
void SetRegisteredGatewayArn(Aws::String &&value)
void SetDefinition(const Aws::String &value)
NetworkResource & WithRegisteredGatewayArn(Aws::String &&value)
void SetResourceArn(const Aws::String &value)
NetworkResource & WithDefinition(Aws::String &&value)
NetworkResource & WithAwsRegion(const Aws::String &value)
NetworkResource & WithCoreNetworkId(const char *value)
NetworkResource & WithTags(Aws::Vector< Tag > &&value)
NetworkResource & WithDefinitionTimestamp(const Aws::Utils::DateTime &value)
NetworkResource & WithCoreNetworkId(Aws::String &&value)
NetworkResource & WithTags(const Aws::Vector< Tag > &value)
NetworkResource & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
NetworkResource & WithAwsRegion(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
NetworkResource & WithResourceType(const Aws::String &value)
NetworkResource & AddMetadata(const char *key, const char *value)
NetworkResource & WithResourceType(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
const Aws::Utils::DateTime & GetDefinitionTimestamp() const
NetworkResource & AddMetadata(const char *key, Aws::String &&value)
const Aws::String & GetRegisteredGatewayArn() const
AWS_NETWORKMANAGER_API NetworkResource & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkResource & AddTags(const Tag &value)
NetworkResource & WithResourceType(Aws::String &&value)
AWS_NETWORKMANAGER_API NetworkResource(Aws::Utils::Json::JsonView jsonValue)
void SetResourceType(const Aws::String &value)
NetworkResource & AddMetadata(Aws::String &&key, const char *value)
NetworkResource & WithResourceArn(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
NetworkResource & WithAccountId(const char *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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue