AWS SDK for C++

AWS SDK for C++ Version 1.11.895

Loading...
Searching...
No Matches
Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/directconnect/DirectConnect_EXPORTS.h>
10#include <aws/directconnect/model/AvailableBillingMode.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DirectConnect {
22namespace Model {
23
29class Location {
30 public:
31 AWS_DIRECTCONNECT_API Location() = default;
32 AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DIRECTCONNECT_API Location& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLocationCode() const { return m_locationCode; }
41 inline bool LocationCodeHasBeenSet() const { return m_locationCodeHasBeenSet; }
42 template <typename LocationCodeT = Aws::String>
43 void SetLocationCode(LocationCodeT&& value) {
44 m_locationCodeHasBeenSet = true;
45 m_locationCode = std::forward<LocationCodeT>(value);
46 }
47 template <typename LocationCodeT = Aws::String>
48 Location& WithLocationCode(LocationCodeT&& value) {
49 SetLocationCode(std::forward<LocationCodeT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetLocationName() const { return m_locationName; }
60 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
61 template <typename LocationNameT = Aws::String>
62 void SetLocationName(LocationNameT&& value) {
63 m_locationNameHasBeenSet = true;
64 m_locationName = std::forward<LocationNameT>(value);
65 }
66 template <typename LocationNameT = Aws::String>
67 Location& WithLocationName(LocationNameT&& value) {
68 SetLocationName(std::forward<LocationNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRegion() const { return m_region; }
78 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
79 template <typename RegionT = Aws::String>
80 void SetRegion(RegionT&& value) {
81 m_regionHasBeenSet = true;
82 m_region = std::forward<RegionT>(value);
83 }
84 template <typename RegionT = Aws::String>
85 Location& WithRegion(RegionT&& value) {
86 SetRegion(std::forward<RegionT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::Vector<Aws::String>& GetAvailablePortSpeeds() const { return m_availablePortSpeeds; }
96 inline bool AvailablePortSpeedsHasBeenSet() const { return m_availablePortSpeedsHasBeenSet; }
97 template <typename AvailablePortSpeedsT = Aws::Vector<Aws::String>>
98 void SetAvailablePortSpeeds(AvailablePortSpeedsT&& value) {
99 m_availablePortSpeedsHasBeenSet = true;
100 m_availablePortSpeeds = std::forward<AvailablePortSpeedsT>(value);
101 }
102 template <typename AvailablePortSpeedsT = Aws::Vector<Aws::String>>
103 Location& WithAvailablePortSpeeds(AvailablePortSpeedsT&& value) {
104 SetAvailablePortSpeeds(std::forward<AvailablePortSpeedsT>(value));
105 return *this;
106 }
107 template <typename AvailablePortSpeedsT = Aws::String>
108 Location& AddAvailablePortSpeeds(AvailablePortSpeedsT&& value) {
109 m_availablePortSpeedsHasBeenSet = true;
110 m_availablePortSpeeds.emplace_back(std::forward<AvailablePortSpeedsT>(value));
111 return *this;
112 }
114
116
119 inline const Aws::Vector<Aws::String>& GetAvailableProviders() const { return m_availableProviders; }
120 inline bool AvailableProvidersHasBeenSet() const { return m_availableProvidersHasBeenSet; }
121 template <typename AvailableProvidersT = Aws::Vector<Aws::String>>
122 void SetAvailableProviders(AvailableProvidersT&& value) {
123 m_availableProvidersHasBeenSet = true;
124 m_availableProviders = std::forward<AvailableProvidersT>(value);
125 }
126 template <typename AvailableProvidersT = Aws::Vector<Aws::String>>
127 Location& WithAvailableProviders(AvailableProvidersT&& value) {
128 SetAvailableProviders(std::forward<AvailableProvidersT>(value));
129 return *this;
130 }
131 template <typename AvailableProvidersT = Aws::String>
132 Location& AddAvailableProviders(AvailableProvidersT&& value) {
133 m_availableProvidersHasBeenSet = true;
134 m_availableProviders.emplace_back(std::forward<AvailableProvidersT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::Vector<Aws::String>& GetAvailableMacSecPortSpeeds() const { return m_availableMacSecPortSpeeds; }
144 inline bool AvailableMacSecPortSpeedsHasBeenSet() const { return m_availableMacSecPortSpeedsHasBeenSet; }
145 template <typename AvailableMacSecPortSpeedsT = Aws::Vector<Aws::String>>
146 void SetAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) {
147 m_availableMacSecPortSpeedsHasBeenSet = true;
148 m_availableMacSecPortSpeeds = std::forward<AvailableMacSecPortSpeedsT>(value);
149 }
150 template <typename AvailableMacSecPortSpeedsT = Aws::Vector<Aws::String>>
151 Location& WithAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) {
152 SetAvailableMacSecPortSpeeds(std::forward<AvailableMacSecPortSpeedsT>(value));
153 return *this;
154 }
155 template <typename AvailableMacSecPortSpeedsT = Aws::String>
156 Location& AddAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) {
157 m_availableMacSecPortSpeedsHasBeenSet = true;
158 m_availableMacSecPortSpeeds.emplace_back(std::forward<AvailableMacSecPortSpeedsT>(value));
159 return *this;
160 }
162
164
168 inline const Aws::Vector<AvailableBillingMode>& GetAvailableBillingModes() const { return m_availableBillingModes; }
169 inline bool AvailableBillingModesHasBeenSet() const { return m_availableBillingModesHasBeenSet; }
170 template <typename AvailableBillingModesT = Aws::Vector<AvailableBillingMode>>
171 void SetAvailableBillingModes(AvailableBillingModesT&& value) {
172 m_availableBillingModesHasBeenSet = true;
173 m_availableBillingModes = std::forward<AvailableBillingModesT>(value);
174 }
175 template <typename AvailableBillingModesT = Aws::Vector<AvailableBillingMode>>
176 Location& WithAvailableBillingModes(AvailableBillingModesT&& value) {
177 SetAvailableBillingModes(std::forward<AvailableBillingModesT>(value));
178 return *this;
179 }
180 template <typename AvailableBillingModesT = AvailableBillingMode>
181 Location& AddAvailableBillingModes(AvailableBillingModesT&& value) {
182 m_availableBillingModesHasBeenSet = true;
183 m_availableBillingModes.emplace_back(std::forward<AvailableBillingModesT>(value));
184 return *this;
185 }
187 private:
188 Aws::String m_locationCode;
189
190 Aws::String m_locationName;
191
192 Aws::String m_region;
193
194 Aws::Vector<Aws::String> m_availablePortSpeeds;
195
196 Aws::Vector<Aws::String> m_availableProviders;
197
198 Aws::Vector<Aws::String> m_availableMacSecPortSpeeds;
199
200 Aws::Vector<AvailableBillingMode> m_availableBillingModes;
201 bool m_locationCodeHasBeenSet = false;
202 bool m_locationNameHasBeenSet = false;
203 bool m_regionHasBeenSet = false;
204 bool m_availablePortSpeedsHasBeenSet = false;
205 bool m_availableProvidersHasBeenSet = false;
206 bool m_availableMacSecPortSpeedsHasBeenSet = false;
207 bool m_availableBillingModesHasBeenSet = false;
208};
209
210} // namespace Model
211} // namespace DirectConnect
212} // namespace Aws
Location & WithLocationName(LocationNameT &&value)
Definition Location.h:67
void SetAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:122
const Aws::Vector< Aws::String > & GetAvailablePortSpeeds() const
Definition Location.h:95
Location & WithRegion(RegionT &&value)
Definition Location.h:85
bool AvailableBillingModesHasBeenSet() const
Definition Location.h:169
const Aws::Vector< AvailableBillingMode > & GetAvailableBillingModes() const
Definition Location.h:168
const Aws::String & GetLocationName() const
Definition Location.h:59
const Aws::String & GetRegion() const
Definition Location.h:77
Location & WithLocationCode(LocationCodeT &&value)
Definition Location.h:48
const Aws::String & GetLocationCode() const
Definition Location.h:40
AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue)
void SetAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:98
Location & WithAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:151
AWS_DIRECTCONNECT_API Location()=default
Location & WithAvailableBillingModes(AvailableBillingModesT &&value)
Definition Location.h:176
Location & AddAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:156
void SetRegion(RegionT &&value)
Definition Location.h:80
AWS_DIRECTCONNECT_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Location & AddAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:108
bool AvailablePortSpeedsHasBeenSet() const
Definition Location.h:96
void SetAvailableBillingModes(AvailableBillingModesT &&value)
Definition Location.h:171
const Aws::Vector< Aws::String > & GetAvailableProviders() const
Definition Location.h:119
void SetAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:146
Location & WithAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:127
bool AvailableMacSecPortSpeedsHasBeenSet() const
Definition Location.h:144
void SetLocationName(LocationNameT &&value)
Definition Location.h:62
void SetLocationCode(LocationCodeT &&value)
Definition Location.h:43
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAvailableMacSecPortSpeeds() const
Definition Location.h:143
Location & AddAvailableBillingModes(AvailableBillingModesT &&value)
Definition Location.h:181
Location & AddAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:132
Location & WithAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue