AWS SDK for C++

AWS SDK for C++ Version 1.11.763

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DirectConnect {
21namespace Model {
22
28class Location {
29 public:
30 AWS_DIRECTCONNECT_API Location() = default;
31 AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DIRECTCONNECT_API Location& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLocationCode() const { return m_locationCode; }
40 inline bool LocationCodeHasBeenSet() const { return m_locationCodeHasBeenSet; }
41 template <typename LocationCodeT = Aws::String>
42 void SetLocationCode(LocationCodeT&& value) {
43 m_locationCodeHasBeenSet = true;
44 m_locationCode = std::forward<LocationCodeT>(value);
45 }
46 template <typename LocationCodeT = Aws::String>
47 Location& WithLocationCode(LocationCodeT&& value) {
48 SetLocationCode(std::forward<LocationCodeT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetLocationName() const { return m_locationName; }
59 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
60 template <typename LocationNameT = Aws::String>
61 void SetLocationName(LocationNameT&& value) {
62 m_locationNameHasBeenSet = true;
63 m_locationName = std::forward<LocationNameT>(value);
64 }
65 template <typename LocationNameT = Aws::String>
66 Location& WithLocationName(LocationNameT&& value) {
67 SetLocationName(std::forward<LocationNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRegion() const { return m_region; }
77 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
78 template <typename RegionT = Aws::String>
79 void SetRegion(RegionT&& value) {
80 m_regionHasBeenSet = true;
81 m_region = std::forward<RegionT>(value);
82 }
83 template <typename RegionT = Aws::String>
84 Location& WithRegion(RegionT&& value) {
85 SetRegion(std::forward<RegionT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Vector<Aws::String>& GetAvailablePortSpeeds() const { return m_availablePortSpeeds; }
95 inline bool AvailablePortSpeedsHasBeenSet() const { return m_availablePortSpeedsHasBeenSet; }
96 template <typename AvailablePortSpeedsT = Aws::Vector<Aws::String>>
97 void SetAvailablePortSpeeds(AvailablePortSpeedsT&& value) {
98 m_availablePortSpeedsHasBeenSet = true;
99 m_availablePortSpeeds = std::forward<AvailablePortSpeedsT>(value);
100 }
101 template <typename AvailablePortSpeedsT = Aws::Vector<Aws::String>>
102 Location& WithAvailablePortSpeeds(AvailablePortSpeedsT&& value) {
103 SetAvailablePortSpeeds(std::forward<AvailablePortSpeedsT>(value));
104 return *this;
105 }
106 template <typename AvailablePortSpeedsT = Aws::String>
107 Location& AddAvailablePortSpeeds(AvailablePortSpeedsT&& value) {
108 m_availablePortSpeedsHasBeenSet = true;
109 m_availablePortSpeeds.emplace_back(std::forward<AvailablePortSpeedsT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<Aws::String>& GetAvailableProviders() const { return m_availableProviders; }
119 inline bool AvailableProvidersHasBeenSet() const { return m_availableProvidersHasBeenSet; }
120 template <typename AvailableProvidersT = Aws::Vector<Aws::String>>
121 void SetAvailableProviders(AvailableProvidersT&& value) {
122 m_availableProvidersHasBeenSet = true;
123 m_availableProviders = std::forward<AvailableProvidersT>(value);
124 }
125 template <typename AvailableProvidersT = Aws::Vector<Aws::String>>
126 Location& WithAvailableProviders(AvailableProvidersT&& value) {
127 SetAvailableProviders(std::forward<AvailableProvidersT>(value));
128 return *this;
129 }
130 template <typename AvailableProvidersT = Aws::String>
131 Location& AddAvailableProviders(AvailableProvidersT&& value) {
132 m_availableProvidersHasBeenSet = true;
133 m_availableProviders.emplace_back(std::forward<AvailableProvidersT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Vector<Aws::String>& GetAvailableMacSecPortSpeeds() const { return m_availableMacSecPortSpeeds; }
143 inline bool AvailableMacSecPortSpeedsHasBeenSet() const { return m_availableMacSecPortSpeedsHasBeenSet; }
144 template <typename AvailableMacSecPortSpeedsT = Aws::Vector<Aws::String>>
145 void SetAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) {
146 m_availableMacSecPortSpeedsHasBeenSet = true;
147 m_availableMacSecPortSpeeds = std::forward<AvailableMacSecPortSpeedsT>(value);
148 }
149 template <typename AvailableMacSecPortSpeedsT = Aws::Vector<Aws::String>>
150 Location& WithAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) {
151 SetAvailableMacSecPortSpeeds(std::forward<AvailableMacSecPortSpeedsT>(value));
152 return *this;
153 }
154 template <typename AvailableMacSecPortSpeedsT = Aws::String>
155 Location& AddAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) {
156 m_availableMacSecPortSpeedsHasBeenSet = true;
157 m_availableMacSecPortSpeeds.emplace_back(std::forward<AvailableMacSecPortSpeedsT>(value));
158 return *this;
159 }
161 private:
162 Aws::String m_locationCode;
163
164 Aws::String m_locationName;
165
166 Aws::String m_region;
167
168 Aws::Vector<Aws::String> m_availablePortSpeeds;
169
170 Aws::Vector<Aws::String> m_availableProviders;
171
172 Aws::Vector<Aws::String> m_availableMacSecPortSpeeds;
173 bool m_locationCodeHasBeenSet = false;
174 bool m_locationNameHasBeenSet = false;
175 bool m_regionHasBeenSet = false;
176 bool m_availablePortSpeedsHasBeenSet = false;
177 bool m_availableProvidersHasBeenSet = false;
178 bool m_availableMacSecPortSpeedsHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace DirectConnect
183} // namespace Aws
Location & WithLocationName(LocationNameT &&value)
Definition Location.h:66
void SetAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:121
const Aws::Vector< Aws::String > & GetAvailablePortSpeeds() const
Definition Location.h:94
Location & WithRegion(RegionT &&value)
Definition Location.h:84
const Aws::String & GetLocationName() const
Definition Location.h:58
const Aws::String & GetRegion() const
Definition Location.h:76
Location & WithLocationCode(LocationCodeT &&value)
Definition Location.h:47
const Aws::String & GetLocationCode() const
Definition Location.h:39
AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue)
void SetAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:97
Location & WithAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:150
AWS_DIRECTCONNECT_API Location()=default
Location & AddAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:155
void SetRegion(RegionT &&value)
Definition Location.h:79
AWS_DIRECTCONNECT_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Location & AddAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:107
bool AvailablePortSpeedsHasBeenSet() const
Definition Location.h:95
const Aws::Vector< Aws::String > & GetAvailableProviders() const
Definition Location.h:118
void SetAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:145
Location & WithAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:126
bool AvailableMacSecPortSpeedsHasBeenSet() const
Definition Location.h:143
void SetLocationName(LocationNameT &&value)
Definition Location.h:61
void SetLocationCode(LocationCodeT &&value)
Definition Location.h:42
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAvailableMacSecPortSpeeds() const
Definition Location.h:142
Location & AddAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:131
Location & WithAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:102
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue