AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Site.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/networkmanager/model/Location.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/networkmanager/model/SiteState.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/networkmanager/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace NetworkManager
27{
28namespace Model
29{
30
36 class Site
37 {
38 public:
39 AWS_NETWORKMANAGER_API Site();
40 AWS_NETWORKMANAGER_API Site(Aws::Utils::Json::JsonView jsonValue);
41 AWS_NETWORKMANAGER_API Site& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetSiteId() const{ return m_siteId; }
50 inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; }
51 inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; }
52 inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); }
53 inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); }
54 inline Site& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;}
55 inline Site& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;}
56 inline Site& WithSiteId(const char* value) { SetSiteId(value); return *this;}
58
60
63 inline const Aws::String& GetSiteArn() const{ return m_siteArn; }
64 inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; }
65 inline void SetSiteArn(const Aws::String& value) { m_siteArnHasBeenSet = true; m_siteArn = value; }
66 inline void SetSiteArn(Aws::String&& value) { m_siteArnHasBeenSet = true; m_siteArn = std::move(value); }
67 inline void SetSiteArn(const char* value) { m_siteArnHasBeenSet = true; m_siteArn.assign(value); }
68 inline Site& WithSiteArn(const Aws::String& value) { SetSiteArn(value); return *this;}
69 inline Site& WithSiteArn(Aws::String&& value) { SetSiteArn(std::move(value)); return *this;}
70 inline Site& WithSiteArn(const char* value) { SetSiteArn(value); return *this;}
72
74
77 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
78 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
79 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
80 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
81 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
82 inline Site& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
83 inline Site& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
84 inline Site& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline Site& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline Site& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline Site& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline const Location& GetLocation() const{ return m_location; }
106 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
107 inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; }
108 inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
109 inline Site& WithLocation(const Location& value) { SetLocation(value); return *this;}
110 inline Site& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;}
112
114
117 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
118 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
119 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
120 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
121 inline Site& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
122 inline Site& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
124
126
129 inline const SiteState& GetState() const{ return m_state; }
130 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
131 inline void SetState(const SiteState& value) { m_stateHasBeenSet = true; m_state = value; }
132 inline void SetState(SiteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
133 inline Site& WithState(const SiteState& value) { SetState(value); return *this;}
134 inline Site& WithState(SiteState&& value) { SetState(std::move(value)); return *this;}
136
138
141 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
142 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
143 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
144 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
145 inline Site& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
146 inline Site& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
147 inline Site& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
148 inline Site& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
150 private:
151
152 Aws::String m_siteId;
153 bool m_siteIdHasBeenSet = false;
154
155 Aws::String m_siteArn;
156 bool m_siteArnHasBeenSet = false;
157
158 Aws::String m_globalNetworkId;
159 bool m_globalNetworkIdHasBeenSet = false;
160
161 Aws::String m_description;
162 bool m_descriptionHasBeenSet = false;
163
164 Location m_location;
165 bool m_locationHasBeenSet = false;
166
167 Aws::Utils::DateTime m_createdAt;
168 bool m_createdAtHasBeenSet = false;
169
170 SiteState m_state;
171 bool m_stateHasBeenSet = false;
172
173 Aws::Vector<Tag> m_tags;
174 bool m_tagsHasBeenSet = false;
175 };
176
177} // namespace Model
178} // namespace NetworkManager
179} // namespace Aws
const Location & GetLocation() const
Definition Site.h:105
void SetGlobalNetworkId(const char *value)
Definition Site.h:81
Site & WithState(SiteState &&value)
Definition Site.h:134
Site & WithState(const SiteState &value)
Definition Site.h:133
void SetState(const SiteState &value)
Definition Site.h:131
void SetSiteArn(const char *value)
Definition Site.h:67
Site & WithSiteArn(const Aws::String &value)
Definition Site.h:68
Site & WithSiteArn(Aws::String &&value)
Definition Site.h:69
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Site.h:119
Site & WithTags(const Aws::Vector< Tag > &value)
Definition Site.h:145
Site & WithLocation(Location &&value)
Definition Site.h:110
Site & AddTags(Tag &&value)
Definition Site.h:148
Site & WithTags(Aws::Vector< Tag > &&value)
Definition Site.h:146
Site & WithSiteArn(const char *value)
Definition Site.h:70
Site & WithSiteId(const Aws::String &value)
Definition Site.h:54
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDescription(Aws::String &&value)
Definition Site.h:94
AWS_NETWORKMANAGER_API Site(Aws::Utils::Json::JsonView jsonValue)
Site & WithDescription(const Aws::String &value)
Definition Site.h:96
bool LocationHasBeenSet() const
Definition Site.h:106
const Aws::String & GetSiteArn() const
Definition Site.h:63
Site & WithGlobalNetworkId(Aws::String &&value)
Definition Site.h:83
Site & WithLocation(const Location &value)
Definition Site.h:109
void SetSiteId(const Aws::String &value)
Definition Site.h:51
Site & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Site.h:122
bool CreatedAtHasBeenSet() const
Definition Site.h:118
bool DescriptionHasBeenSet() const
Definition Site.h:92
AWS_NETWORKMANAGER_API Site & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetSiteId() const
Definition Site.h:49
const Aws::String & GetDescription() const
Definition Site.h:91
void SetDescription(const Aws::String &value)
Definition Site.h:93
const Aws::String & GetGlobalNetworkId() const
Definition Site.h:77
void SetTags(const Aws::Vector< Tag > &value)
Definition Site.h:143
bool SiteArnHasBeenSet() const
Definition Site.h:64
bool SiteIdHasBeenSet() const
Definition Site.h:50
Site & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Site.h:121
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Site.h:120
Site & WithDescription(const char *value)
Definition Site.h:98
void SetLocation(Location &&value)
Definition Site.h:108
void SetTags(Aws::Vector< Tag > &&value)
Definition Site.h:144
Site & AddTags(const Tag &value)
Definition Site.h:147
const SiteState & GetState() const
Definition Site.h:129
void SetSiteId(const char *value)
Definition Site.h:53
void SetSiteArn(Aws::String &&value)
Definition Site.h:66
Site & WithGlobalNetworkId(const char *value)
Definition Site.h:84
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Site.h:117
Site & WithGlobalNetworkId(const Aws::String &value)
Definition Site.h:82
void SetGlobalNetworkId(const Aws::String &value)
Definition Site.h:79
void SetLocation(const Location &value)
Definition Site.h:107
AWS_NETWORKMANAGER_API Site()
void SetDescription(const char *value)
Definition Site.h:95
void SetSiteArn(const Aws::String &value)
Definition Site.h:65
bool GlobalNetworkIdHasBeenSet() const
Definition Site.h:78
Site & WithDescription(Aws::String &&value)
Definition Site.h:97
void SetState(SiteState &&value)
Definition Site.h:132
const Aws::Vector< Tag > & GetTags() const
Definition Site.h:141
Site & WithSiteId(Aws::String &&value)
Definition Site.h:55
Site & WithSiteId(const char *value)
Definition Site.h:56
void SetSiteId(Aws::String &&value)
Definition Site.h:52
void SetGlobalNetworkId(Aws::String &&value)
Definition Site.h:80
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue