AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Location.h
1
6#pragma once
7#include <aws/directconnect/DirectConnect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DirectConnect
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DIRECTCONNECT_API Location() = default;
36 AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DIRECTCONNECT_API Location& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetLocationCode() const { return m_locationCode; }
46 inline bool LocationCodeHasBeenSet() const { return m_locationCodeHasBeenSet; }
47 template<typename LocationCodeT = Aws::String>
48 void SetLocationCode(LocationCodeT&& value) { m_locationCodeHasBeenSet = true; m_locationCode = std::forward<LocationCodeT>(value); }
49 template<typename LocationCodeT = Aws::String>
50 Location& WithLocationCode(LocationCodeT&& value) { SetLocationCode(std::forward<LocationCodeT>(value)); return *this;}
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) { m_locationNameHasBeenSet = true; m_locationName = std::forward<LocationNameT>(value); }
62 template<typename LocationNameT = Aws::String>
63 Location& WithLocationName(LocationNameT&& value) { SetLocationName(std::forward<LocationNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRegion() const { return m_region; }
71 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
72 template<typename RegionT = Aws::String>
73 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
74 template<typename RegionT = Aws::String>
75 Location& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
77
79
82 inline const Aws::Vector<Aws::String>& GetAvailablePortSpeeds() const { return m_availablePortSpeeds; }
83 inline bool AvailablePortSpeedsHasBeenSet() const { return m_availablePortSpeedsHasBeenSet; }
84 template<typename AvailablePortSpeedsT = Aws::Vector<Aws::String>>
85 void SetAvailablePortSpeeds(AvailablePortSpeedsT&& value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds = std::forward<AvailablePortSpeedsT>(value); }
86 template<typename AvailablePortSpeedsT = Aws::Vector<Aws::String>>
87 Location& WithAvailablePortSpeeds(AvailablePortSpeedsT&& value) { SetAvailablePortSpeeds(std::forward<AvailablePortSpeedsT>(value)); return *this;}
88 template<typename AvailablePortSpeedsT = Aws::String>
89 Location& AddAvailablePortSpeeds(AvailablePortSpeedsT&& value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds.emplace_back(std::forward<AvailablePortSpeedsT>(value)); return *this; }
91
93
96 inline const Aws::Vector<Aws::String>& GetAvailableProviders() const { return m_availableProviders; }
97 inline bool AvailableProvidersHasBeenSet() const { return m_availableProvidersHasBeenSet; }
98 template<typename AvailableProvidersT = Aws::Vector<Aws::String>>
99 void SetAvailableProviders(AvailableProvidersT&& value) { m_availableProvidersHasBeenSet = true; m_availableProviders = std::forward<AvailableProvidersT>(value); }
100 template<typename AvailableProvidersT = Aws::Vector<Aws::String>>
101 Location& WithAvailableProviders(AvailableProvidersT&& value) { SetAvailableProviders(std::forward<AvailableProvidersT>(value)); return *this;}
102 template<typename AvailableProvidersT = Aws::String>
103 Location& AddAvailableProviders(AvailableProvidersT&& value) { m_availableProvidersHasBeenSet = true; m_availableProviders.emplace_back(std::forward<AvailableProvidersT>(value)); return *this; }
105
107
110 inline const Aws::Vector<Aws::String>& GetAvailableMacSecPortSpeeds() const { return m_availableMacSecPortSpeeds; }
111 inline bool AvailableMacSecPortSpeedsHasBeenSet() const { return m_availableMacSecPortSpeedsHasBeenSet; }
112 template<typename AvailableMacSecPortSpeedsT = Aws::Vector<Aws::String>>
113 void SetAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds = std::forward<AvailableMacSecPortSpeedsT>(value); }
114 template<typename AvailableMacSecPortSpeedsT = Aws::Vector<Aws::String>>
115 Location& WithAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) { SetAvailableMacSecPortSpeeds(std::forward<AvailableMacSecPortSpeedsT>(value)); return *this;}
116 template<typename AvailableMacSecPortSpeedsT = Aws::String>
117 Location& AddAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT&& value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds.emplace_back(std::forward<AvailableMacSecPortSpeedsT>(value)); return *this; }
119 private:
120
121 Aws::String m_locationCode;
122 bool m_locationCodeHasBeenSet = false;
123
124 Aws::String m_locationName;
125 bool m_locationNameHasBeenSet = false;
126
127 Aws::String m_region;
128 bool m_regionHasBeenSet = false;
129
130 Aws::Vector<Aws::String> m_availablePortSpeeds;
131 bool m_availablePortSpeedsHasBeenSet = false;
132
133 Aws::Vector<Aws::String> m_availableProviders;
134 bool m_availableProvidersHasBeenSet = false;
135
136 Aws::Vector<Aws::String> m_availableMacSecPortSpeeds;
137 bool m_availableMacSecPortSpeedsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace DirectConnect
142} // namespace Aws
Location & WithLocationName(LocationNameT &&value)
Definition Location.h:63
void SetAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:99
const Aws::Vector< Aws::String > & GetAvailablePortSpeeds() const
Definition Location.h:82
Location & WithRegion(RegionT &&value)
Definition Location.h:75
const Aws::String & GetLocationName() const
Definition Location.h:58
const Aws::String & GetRegion() const
Definition Location.h:70
Location & WithLocationCode(LocationCodeT &&value)
Definition Location.h:50
const Aws::String & GetLocationCode() const
Definition Location.h:45
AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue)
void SetAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:85
Location & WithAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:115
AWS_DIRECTCONNECT_API Location()=default
Location & AddAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:117
void SetRegion(RegionT &&value)
Definition Location.h:73
AWS_DIRECTCONNECT_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
Location & AddAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.h:89
bool AvailableProvidersHasBeenSet() const
Definition Location.h:97
bool AvailablePortSpeedsHasBeenSet() const
Definition Location.h:83
const Aws::Vector< Aws::String > & GetAvailableProviders() const
Definition Location.h:96
void SetAvailableMacSecPortSpeeds(AvailableMacSecPortSpeedsT &&value)
Definition Location.h:113
Location & WithAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:101
bool AvailableMacSecPortSpeedsHasBeenSet() const
Definition Location.h:111
void SetLocationName(LocationNameT &&value)
Definition Location.h:61
void SetLocationCode(LocationCodeT &&value)
Definition Location.h:48
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAvailableMacSecPortSpeeds() const
Definition Location.h:110
Location & AddAvailableProviders(AvailableProvidersT &&value)
Definition Location.h:103
Location & WithAvailablePortSpeeds(AvailablePortSpeedsT &&value)
Definition Location.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