AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
GlobalNetwork.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/networkmanager/NetworkManager_EXPORTS.h>
11#include <aws/networkmanager/model/GlobalNetworkState.h>
12#include <aws/networkmanager/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager {
24namespace Model {
25
34 public:
35 AWS_NETWORKMANAGER_API GlobalNetwork() = default;
36 AWS_NETWORKMANAGER_API GlobalNetwork(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMANAGER_API GlobalNetwork& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
45 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
46 template <typename GlobalNetworkIdT = Aws::String>
47 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
48 m_globalNetworkIdHasBeenSet = true;
49 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
50 }
51 template <typename GlobalNetworkIdT = Aws::String>
52 GlobalNetwork& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
53 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetGlobalNetworkArn() const { return m_globalNetworkArn; }
63 inline bool GlobalNetworkArnHasBeenSet() const { return m_globalNetworkArnHasBeenSet; }
64 template <typename GlobalNetworkArnT = Aws::String>
65 void SetGlobalNetworkArn(GlobalNetworkArnT&& value) {
66 m_globalNetworkArnHasBeenSet = true;
67 m_globalNetworkArn = std::forward<GlobalNetworkArnT>(value);
68 }
69 template <typename GlobalNetworkArnT = Aws::String>
70 GlobalNetwork& WithGlobalNetworkArn(GlobalNetworkArnT&& value) {
71 SetGlobalNetworkArn(std::forward<GlobalNetworkArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 GlobalNetwork& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
99 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 void SetCreatedAt(CreatedAtT&& value) {
102 m_createdAtHasBeenSet = true;
103 m_createdAt = std::forward<CreatedAtT>(value);
104 }
105 template <typename CreatedAtT = Aws::Utils::DateTime>
106 GlobalNetwork& WithCreatedAt(CreatedAtT&& value) {
107 SetCreatedAt(std::forward<CreatedAtT>(value));
108 return *this;
109 }
111
113
116 inline GlobalNetworkState GetState() const { return m_state; }
117 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
118 inline void SetState(GlobalNetworkState value) {
119 m_stateHasBeenSet = true;
120 m_state = value;
121 }
123 SetState(value);
124 return *this;
125 }
127
129
132 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Vector<Tag>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Vector<Tag>>
140 GlobalNetwork& WithTags(TagsT&& value) {
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsT = Tag>
145 GlobalNetwork& AddTags(TagsT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace_back(std::forward<TagsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_globalNetworkId;
153
154 Aws::String m_globalNetworkArn;
155
156 Aws::String m_description;
157
158 Aws::Utils::DateTime m_createdAt{};
159
161
162 Aws::Vector<Tag> m_tags;
163 bool m_globalNetworkIdHasBeenSet = false;
164 bool m_globalNetworkArnHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_createdAtHasBeenSet = false;
167 bool m_stateHasBeenSet = false;
168 bool m_tagsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace NetworkManager
173} // namespace Aws
void SetDescription(DescriptionT &&value)
GlobalNetwork & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetGlobalNetworkId() const
GlobalNetwork & WithGlobalNetworkId(GlobalNetworkIdT &&value)
void SetState(GlobalNetworkState value)
GlobalNetwork & WithDescription(DescriptionT &&value)
const Aws::String & GetGlobalNetworkArn() const
AWS_NETWORKMANAGER_API GlobalNetwork()=default
GlobalNetwork & WithGlobalNetworkArn(GlobalNetworkArnT &&value)
GlobalNetwork & WithState(GlobalNetworkState value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Tag > & GetTags() const
GlobalNetwork & WithTags(TagsT &&value)
AWS_NETWORKMANAGER_API GlobalNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API GlobalNetwork(Aws::Utils::Json::JsonView jsonValue)
GlobalNetwork & AddTags(TagsT &&value)
void SetGlobalNetworkArn(GlobalNetworkArnT &&value)
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue