AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetLocationCode(const Aws::String& value) { m_locationCodeHasBeenSet = true; m_locationCode = value; }
48 inline void SetLocationCode(Aws::String&& value) { m_locationCodeHasBeenSet = true; m_locationCode = std::move(value); }
49 inline void SetLocationCode(const char* value) { m_locationCodeHasBeenSet = true; m_locationCode.assign(value); }
50 inline Location& WithLocationCode(const Aws::String& value) { SetLocationCode(value); return *this;}
51 inline Location& WithLocationCode(Aws::String&& value) { SetLocationCode(std::move(value)); return *this;}
52 inline Location& WithLocationCode(const char* value) { SetLocationCode(value); return *this;}
54
56
60 inline const Aws::String& GetLocationName() const{ return m_locationName; }
61 inline bool LocationNameHasBeenSet() const { return m_locationNameHasBeenSet; }
62 inline void SetLocationName(const Aws::String& value) { m_locationNameHasBeenSet = true; m_locationName = value; }
63 inline void SetLocationName(Aws::String&& value) { m_locationNameHasBeenSet = true; m_locationName = std::move(value); }
64 inline void SetLocationName(const char* value) { m_locationNameHasBeenSet = true; m_locationName.assign(value); }
65 inline Location& WithLocationName(const Aws::String& value) { SetLocationName(value); return *this;}
66 inline Location& WithLocationName(Aws::String&& value) { SetLocationName(std::move(value)); return *this;}
67 inline Location& WithLocationName(const char* value) { SetLocationName(value); return *this;}
69
71
74 inline const Aws::String& GetRegion() const{ return m_region; }
75 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
76 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
77 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
78 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
79 inline Location& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
80 inline Location& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
81 inline Location& WithRegion(const char* value) { SetRegion(value); return *this;}
83
85
88 inline const Aws::Vector<Aws::String>& GetAvailablePortSpeeds() const{ return m_availablePortSpeeds; }
89 inline bool AvailablePortSpeedsHasBeenSet() const { return m_availablePortSpeedsHasBeenSet; }
90 inline void SetAvailablePortSpeeds(const Aws::Vector<Aws::String>& value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds = value; }
91 inline void SetAvailablePortSpeeds(Aws::Vector<Aws::String>&& value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds = std::move(value); }
93 inline Location& WithAvailablePortSpeeds(Aws::Vector<Aws::String>&& value) { SetAvailablePortSpeeds(std::move(value)); return *this;}
94 inline Location& AddAvailablePortSpeeds(const Aws::String& value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds.push_back(value); return *this; }
95 inline Location& AddAvailablePortSpeeds(Aws::String&& value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds.push_back(std::move(value)); return *this; }
96 inline Location& AddAvailablePortSpeeds(const char* value) { m_availablePortSpeedsHasBeenSet = true; m_availablePortSpeeds.push_back(value); return *this; }
98
100
103 inline const Aws::Vector<Aws::String>& GetAvailableProviders() const{ return m_availableProviders; }
104 inline bool AvailableProvidersHasBeenSet() const { return m_availableProvidersHasBeenSet; }
105 inline void SetAvailableProviders(const Aws::Vector<Aws::String>& value) { m_availableProvidersHasBeenSet = true; m_availableProviders = value; }
106 inline void SetAvailableProviders(Aws::Vector<Aws::String>&& value) { m_availableProvidersHasBeenSet = true; m_availableProviders = std::move(value); }
108 inline Location& WithAvailableProviders(Aws::Vector<Aws::String>&& value) { SetAvailableProviders(std::move(value)); return *this;}
109 inline Location& AddAvailableProviders(const Aws::String& value) { m_availableProvidersHasBeenSet = true; m_availableProviders.push_back(value); return *this; }
110 inline Location& AddAvailableProviders(Aws::String&& value) { m_availableProvidersHasBeenSet = true; m_availableProviders.push_back(std::move(value)); return *this; }
111 inline Location& AddAvailableProviders(const char* value) { m_availableProvidersHasBeenSet = true; m_availableProviders.push_back(value); return *this; }
113
115
118 inline const Aws::Vector<Aws::String>& GetAvailableMacSecPortSpeeds() const{ return m_availableMacSecPortSpeeds; }
119 inline bool AvailableMacSecPortSpeedsHasBeenSet() const { return m_availableMacSecPortSpeedsHasBeenSet; }
120 inline void SetAvailableMacSecPortSpeeds(const Aws::Vector<Aws::String>& value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds = value; }
121 inline void SetAvailableMacSecPortSpeeds(Aws::Vector<Aws::String>&& value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds = std::move(value); }
124 inline Location& AddAvailableMacSecPortSpeeds(const Aws::String& value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds.push_back(value); return *this; }
125 inline Location& AddAvailableMacSecPortSpeeds(Aws::String&& value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds.push_back(std::move(value)); return *this; }
126 inline Location& AddAvailableMacSecPortSpeeds(const char* value) { m_availableMacSecPortSpeedsHasBeenSet = true; m_availableMacSecPortSpeeds.push_back(value); return *this; }
128 private:
129
130 Aws::String m_locationCode;
131 bool m_locationCodeHasBeenSet = false;
132
133 Aws::String m_locationName;
134 bool m_locationNameHasBeenSet = false;
135
136 Aws::String m_region;
137 bool m_regionHasBeenSet = false;
138
139 Aws::Vector<Aws::String> m_availablePortSpeeds;
140 bool m_availablePortSpeedsHasBeenSet = false;
141
142 Aws::Vector<Aws::String> m_availableProviders;
143 bool m_availableProvidersHasBeenSet = false;
144
145 Aws::Vector<Aws::String> m_availableMacSecPortSpeeds;
146 bool m_availableMacSecPortSpeedsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace DirectConnect
151} // namespace Aws
Location & WithRegion(Aws::String &&value)
Definition Location.h:80
void SetAvailableMacSecPortSpeeds(const Aws::Vector< Aws::String > &value)
Definition Location.h:120
void SetAvailableProviders(Aws::Vector< Aws::String > &&value)
Definition Location.h:106
const Aws::Vector< Aws::String > & GetAvailablePortSpeeds() const
Definition Location.h:88
Location & AddAvailablePortSpeeds(Aws::String &&value)
Definition Location.h:95
void SetAvailableMacSecPortSpeeds(Aws::Vector< Aws::String > &&value)
Definition Location.h:121
Location & AddAvailablePortSpeeds(const char *value)
Definition Location.h:96
const Aws::String & GetLocationName() const
Definition Location.h:60
Location & WithAvailablePortSpeeds(Aws::Vector< Aws::String > &&value)
Definition Location.h:93
Location & WithLocationCode(const char *value)
Definition Location.h:52
const Aws::String & GetRegion() const
Definition Location.h:74
void SetRegion(const char *value)
Definition Location.h:78
const Aws::String & GetLocationCode() const
Definition Location.h:45
void SetLocationCode(const char *value)
Definition Location.h:49
void SetLocationName(const char *value)
Definition Location.h:64
void SetAvailablePortSpeeds(Aws::Vector< Aws::String > &&value)
Definition Location.h:91
Location & AddAvailableProviders(Aws::String &&value)
Definition Location.h:110
AWS_DIRECTCONNECT_API Location(Aws::Utils::Json::JsonView jsonValue)
void SetLocationCode(Aws::String &&value)
Definition Location.h:48
Location & WithAvailablePortSpeeds(const Aws::Vector< Aws::String > &value)
Definition Location.h:92
Location & WithLocationName(const Aws::String &value)
Definition Location.h:65
AWS_DIRECTCONNECT_API Location & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLocationName(const Aws::String &value)
Definition Location.h:62
void SetLocationName(Aws::String &&value)
Definition Location.h:63
bool AvailablePortSpeedsHasBeenSet() const
Definition Location.h:89
const Aws::Vector< Aws::String > & GetAvailableProviders() const
Definition Location.h:103
void SetAvailablePortSpeeds(const Aws::Vector< Aws::String > &value)
Definition Location.h:90
Location & WithAvailableProviders(const Aws::Vector< Aws::String > &value)
Definition Location.h:107
Location & WithRegion(const char *value)
Definition Location.h:81
Location & WithAvailableMacSecPortSpeeds(Aws::Vector< Aws::String > &&value)
Definition Location.h:123
Location & AddAvailablePortSpeeds(const Aws::String &value)
Definition Location.h:94
Location & AddAvailableProviders(const char *value)
Definition Location.h:111
Location & WithLocationCode(Aws::String &&value)
Definition Location.h:51
bool AvailableMacSecPortSpeedsHasBeenSet() const
Definition Location.h:119
Location & AddAvailableMacSecPortSpeeds(const char *value)
Definition Location.h:126
Location & WithLocationName(Aws::String &&value)
Definition Location.h:66
Location & WithLocationName(const char *value)
Definition Location.h:67
void SetRegion(const Aws::String &value)
Definition Location.h:76
AWS_DIRECTCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< Aws::String > & GetAvailableMacSecPortSpeeds() const
Definition Location.h:118
Location & AddAvailableMacSecPortSpeeds(Aws::String &&value)
Definition Location.h:125
Location & WithAvailableProviders(Aws::Vector< Aws::String > &&value)
Definition Location.h:108
Location & WithAvailableMacSecPortSpeeds(const Aws::Vector< Aws::String > &value)
Definition Location.h:122
Location & AddAvailableProviders(const Aws::String &value)
Definition Location.h:109
void SetAvailableProviders(const Aws::Vector< Aws::String > &value)
Definition Location.h:105
void SetLocationCode(const Aws::String &value)
Definition Location.h:47
Location & WithLocationCode(const Aws::String &value)
Definition Location.h:50
AWS_DIRECTCONNECT_API Location()
Location & AddAvailableMacSecPortSpeeds(const Aws::String &value)
Definition Location.h:124
void SetRegion(Aws::String &&value)
Definition Location.h:77
Location & WithRegion(const Aws::String &value)
Definition Location.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue