AWS SDK for C++

AWS SDK for C++ Version 1.11.933

Loading...
Searching...
No Matches
Site.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/Location.h>
12#include <aws/networkmanager/model/SiteState.h>
13#include <aws/networkmanager/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace NetworkManager {
25namespace Model {
26
32class Site {
33 public:
34 AWS_NETWORKMANAGER_API Site() = default;
35 AWS_NETWORKMANAGER_API Site(Aws::Utils::Json::JsonView jsonValue);
36 AWS_NETWORKMANAGER_API Site& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetSiteId() const { return m_siteId; }
44 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
45 template <typename SiteIdT = Aws::String>
46 void SetSiteId(SiteIdT&& value) {
47 m_siteIdHasBeenSet = true;
48 m_siteId = std::forward<SiteIdT>(value);
49 }
50 template <typename SiteIdT = Aws::String>
51 Site& WithSiteId(SiteIdT&& value) {
52 SetSiteId(std::forward<SiteIdT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetSiteArn() const { return m_siteArn; }
62 inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; }
63 template <typename SiteArnT = Aws::String>
64 void SetSiteArn(SiteArnT&& value) {
65 m_siteArnHasBeenSet = true;
66 m_siteArn = std::forward<SiteArnT>(value);
67 }
68 template <typename SiteArnT = Aws::String>
69 Site& WithSiteArn(SiteArnT&& value) {
70 SetSiteArn(std::forward<SiteArnT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetGlobalNetworkId() const { return m_globalNetworkId; }
80 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
81 template <typename GlobalNetworkIdT = Aws::String>
82 void SetGlobalNetworkId(GlobalNetworkIdT&& value) {
83 m_globalNetworkIdHasBeenSet = true;
84 m_globalNetworkId = std::forward<GlobalNetworkIdT>(value);
85 }
86 template <typename GlobalNetworkIdT = Aws::String>
87 Site& WithGlobalNetworkId(GlobalNetworkIdT&& value) {
88 SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetDescription() const { return m_description; }
98 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
99 template <typename DescriptionT = Aws::String>
100 void SetDescription(DescriptionT&& value) {
101 m_descriptionHasBeenSet = true;
102 m_description = std::forward<DescriptionT>(value);
103 }
104 template <typename DescriptionT = Aws::String>
105 Site& WithDescription(DescriptionT&& value) {
106 SetDescription(std::forward<DescriptionT>(value));
107 return *this;
108 }
110
112
115 inline const Location& GetLocation() const { return m_location; }
116 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
117 template <typename LocationT = Location>
118 void SetLocation(LocationT&& value) {
119 m_locationHasBeenSet = true;
120 m_location = std::forward<LocationT>(value);
121 }
122 template <typename LocationT = Location>
123 Site& WithLocation(LocationT&& value) {
124 SetLocation(std::forward<LocationT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
134 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
135 template <typename CreatedAtT = Aws::Utils::DateTime>
136 void SetCreatedAt(CreatedAtT&& value) {
137 m_createdAtHasBeenSet = true;
138 m_createdAt = std::forward<CreatedAtT>(value);
139 }
140 template <typename CreatedAtT = Aws::Utils::DateTime>
141 Site& WithCreatedAt(CreatedAtT&& value) {
142 SetCreatedAt(std::forward<CreatedAtT>(value));
143 return *this;
144 }
146
148
151 inline SiteState GetState() const { return m_state; }
152 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
153 inline void SetState(SiteState value) {
154 m_stateHasBeenSet = true;
155 m_state = value;
156 }
157 inline Site& WithState(SiteState value) {
158 SetState(value);
159 return *this;
160 }
162
164
167 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template <typename TagsT = Aws::Vector<Tag>>
170 void SetTags(TagsT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags = std::forward<TagsT>(value);
173 }
174 template <typename TagsT = Aws::Vector<Tag>>
175 Site& WithTags(TagsT&& value) {
176 SetTags(std::forward<TagsT>(value));
177 return *this;
178 }
179 template <typename TagsT = Tag>
180 Site& AddTags(TagsT&& value) {
181 m_tagsHasBeenSet = true;
182 m_tags.emplace_back(std::forward<TagsT>(value));
183 return *this;
184 }
186 private:
187 Aws::String m_siteId;
188
189 Aws::String m_siteArn;
190
191 Aws::String m_globalNetworkId;
192
193 Aws::String m_description;
194
195 Location m_location;
196
197 Aws::Utils::DateTime m_createdAt{};
198
200
201 Aws::Vector<Tag> m_tags;
202 bool m_siteIdHasBeenSet = false;
203 bool m_siteArnHasBeenSet = false;
204 bool m_globalNetworkIdHasBeenSet = false;
205 bool m_descriptionHasBeenSet = false;
206 bool m_locationHasBeenSet = false;
207 bool m_createdAtHasBeenSet = false;
208 bool m_stateHasBeenSet = false;
209 bool m_tagsHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace NetworkManager
214} // namespace Aws
const Location & GetLocation() const
Definition Site.h:115
Site & AddTags(TagsT &&value)
Definition Site.h:180
void SetState(SiteState value)
Definition Site.h:153
Site & WithLocation(LocationT &&value)
Definition Site.h:123
Site & WithCreatedAt(CreatedAtT &&value)
Definition Site.h:141
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API Site(Aws::Utils::Json::JsonView jsonValue)
void SetLocation(LocationT &&value)
Definition Site.h:118
bool LocationHasBeenSet() const
Definition Site.h:116
const Aws::String & GetSiteArn() const
Definition Site.h:61
Site & WithSiteId(SiteIdT &&value)
Definition Site.h:51
bool CreatedAtHasBeenSet() const
Definition Site.h:134
bool DescriptionHasBeenSet() const
Definition Site.h:98
AWS_NETWORKMANAGER_API Site & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSiteId() const
Definition Site.h:43
const Aws::String & GetDescription() const
Definition Site.h:97
AWS_NETWORKMANAGER_API Site()=default
const Aws::String & GetGlobalNetworkId() const
Definition Site.h:79
bool SiteArnHasBeenSet() const
Definition Site.h:62
void SetGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Site.h:82
void SetCreatedAt(CreatedAtT &&value)
Definition Site.h:136
bool SiteIdHasBeenSet() const
Definition Site.h:44
Site & WithDescription(DescriptionT &&value)
Definition Site.h:105
void SetDescription(DescriptionT &&value)
Definition Site.h:100
Site & WithTags(TagsT &&value)
Definition Site.h:175
Site & WithState(SiteState value)
Definition Site.h:157
void SetSiteId(SiteIdT &&value)
Definition Site.h:46
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Site.h:133
SiteState GetState() const
Definition Site.h:151
bool GlobalNetworkIdHasBeenSet() const
Definition Site.h:80
Site & WithSiteArn(SiteArnT &&value)
Definition Site.h:69
const Aws::Vector< Tag > & GetTags() const
Definition Site.h:167
void SetSiteArn(SiteArnT &&value)
Definition Site.h:64
void SetTags(TagsT &&value)
Definition Site.h:170
Site & WithGlobalNetworkId(GlobalNetworkIdT &&value)
Definition Site.h:87
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue