AWS SDK for C++  0.12.9
AWS SDK for C++
Interconnect.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace DirectConnect
30 {
31 namespace Model
32 {
33 
46  {
47  public:
48  Interconnect();
49  Interconnect(const Aws::Utils::Json::JsonValue& jsonValue);
50  Interconnect& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
51  Aws::Utils::Json::JsonValue Jsonize() const;
52 
53 
54  inline const Aws::String& GetInterconnectId() const{ return m_interconnectId; }
55 
56 
57  inline void SetInterconnectId(const Aws::String& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; }
58 
59 
60  inline void SetInterconnectId(Aws::String&& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; }
61 
62 
63  inline void SetInterconnectId(const char* value) { m_interconnectIdHasBeenSet = true; m_interconnectId.assign(value); }
64 
65 
66  inline Interconnect& WithInterconnectId(const Aws::String& value) { SetInterconnectId(value); return *this;}
67 
68 
69  inline Interconnect& WithInterconnectId(Aws::String&& value) { SetInterconnectId(value); return *this;}
70 
71 
72  inline Interconnect& WithInterconnectId(const char* value) { SetInterconnectId(value); return *this;}
73 
74 
75  inline const Aws::String& GetInterconnectName() const{ return m_interconnectName; }
76 
77 
78  inline void SetInterconnectName(const Aws::String& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = value; }
79 
80 
81  inline void SetInterconnectName(Aws::String&& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = value; }
82 
83 
84  inline void SetInterconnectName(const char* value) { m_interconnectNameHasBeenSet = true; m_interconnectName.assign(value); }
85 
86 
87  inline Interconnect& WithInterconnectName(const Aws::String& value) { SetInterconnectName(value); return *this;}
88 
89 
90  inline Interconnect& WithInterconnectName(Aws::String&& value) { SetInterconnectName(value); return *this;}
91 
92 
93  inline Interconnect& WithInterconnectName(const char* value) { SetInterconnectName(value); return *this;}
94 
95 
96  inline const InterconnectState& GetInterconnectState() const{ return m_interconnectState; }
97 
98 
99  inline void SetInterconnectState(const InterconnectState& value) { m_interconnectStateHasBeenSet = true; m_interconnectState = value; }
100 
101 
102  inline void SetInterconnectState(InterconnectState&& value) { m_interconnectStateHasBeenSet = true; m_interconnectState = value; }
103 
104 
105  inline Interconnect& WithInterconnectState(const InterconnectState& value) { SetInterconnectState(value); return *this;}
106 
107 
108  inline Interconnect& WithInterconnectState(InterconnectState&& value) { SetInterconnectState(value); return *this;}
109 
110 
111  inline const Aws::String& GetRegion() const{ return m_region; }
112 
113 
114  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
115 
116 
117  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = value; }
118 
119 
120  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
121 
122 
123  inline Interconnect& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
124 
125 
126  inline Interconnect& WithRegion(Aws::String&& value) { SetRegion(value); return *this;}
127 
128 
129  inline Interconnect& WithRegion(const char* value) { SetRegion(value); return *this;}
130 
131 
132  inline const Aws::String& GetLocation() const{ return m_location; }
133 
134 
135  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
136 
137 
138  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = value; }
139 
140 
141  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
142 
143 
144  inline Interconnect& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
145 
146 
147  inline Interconnect& WithLocation(Aws::String&& value) { SetLocation(value); return *this;}
148 
149 
150  inline Interconnect& WithLocation(const char* value) { SetLocation(value); return *this;}
151 
152 
153  inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
154 
155 
156  inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
157 
158 
159  inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
160 
161 
162  inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
163 
164 
165  inline Interconnect& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
166 
167 
168  inline Interconnect& WithBandwidth(Aws::String&& value) { SetBandwidth(value); return *this;}
169 
170 
171  inline Interconnect& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
172 
173  private:
174  Aws::String m_interconnectId;
175  bool m_interconnectIdHasBeenSet;
176  Aws::String m_interconnectName;
177  bool m_interconnectNameHasBeenSet;
178  InterconnectState m_interconnectState;
179  bool m_interconnectStateHasBeenSet;
180  Aws::String m_region;
181  bool m_regionHasBeenSet;
182  Aws::String m_location;
183  bool m_locationHasBeenSet;
184  Aws::String m_bandwidth;
185  bool m_bandwidthHasBeenSet;
186  };
187 
188 } // namespace Model
189 } // namespace DirectConnect
190 } // namespace Aws
void SetBandwidth(const char *value)
Definition: Interconnect.h:162
void SetLocation(const char *value)
Definition: Interconnect.h:141
const InterconnectState & GetInterconnectState() const
Definition: Interconnect.h:96
void SetInterconnectName(const char *value)
Definition: Interconnect.h:84
Interconnect & WithInterconnectId(const Aws::String &value)
Definition: Interconnect.h:66
void SetInterconnectState(const InterconnectState &value)
Definition: Interconnect.h:99
Interconnect & WithBandwidth(const Aws::String &value)
Definition: Interconnect.h:165
Interconnect & WithLocation(Aws::String &&value)
Definition: Interconnect.h:147
void SetInterconnectId(Aws::String &&value)
Definition: Interconnect.h:60
void SetLocation(const Aws::String &value)
Definition: Interconnect.h:135
void SetRegion(Aws::String &&value)
Definition: Interconnect.h:117
void SetLocation(Aws::String &&value)
Definition: Interconnect.h:138
const Aws::String & GetInterconnectId() const
Definition: Interconnect.h:54
void SetBandwidth(Aws::String &&value)
Definition: Interconnect.h:159
Interconnect & WithBandwidth(Aws::String &&value)
Definition: Interconnect.h:168
Interconnect & WithLocation(const char *value)
Definition: Interconnect.h:150
const Aws::String & GetInterconnectName() const
Definition: Interconnect.h:75
Interconnect & WithInterconnectId(const char *value)
Definition: Interconnect.h:72
Interconnect & WithInterconnectName(Aws::String &&value)
Definition: Interconnect.h:90
Interconnect & WithInterconnectName(const char *value)
Definition: Interconnect.h:93
Interconnect & WithLocation(const Aws::String &value)
Definition: Interconnect.h:144
void SetInterconnectId(const char *value)
Definition: Interconnect.h:63
void SetInterconnectName(Aws::String &&value)
Definition: Interconnect.h:81
void SetInterconnectState(InterconnectState &&value)
Definition: Interconnect.h:102
void SetInterconnectId(const Aws::String &value)
Definition: Interconnect.h:57
const Aws::String & GetRegion() const
Definition: Interconnect.h:111
void SetRegion(const Aws::String &value)
Definition: Interconnect.h:114
#define AWS_DIRECTCONNECT_API
Interconnect & WithRegion(const Aws::String &value)
Definition: Interconnect.h:123
Interconnect & WithBandwidth(const char *value)
Definition: Interconnect.h:171
Interconnect & WithInterconnectState(InterconnectState &&value)
Definition: Interconnect.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetInterconnectName(const Aws::String &value)
Definition: Interconnect.h:78
Interconnect & WithInterconnectState(const InterconnectState &value)
Definition: Interconnect.h:105
Interconnect & WithRegion(Aws::String &&value)
Definition: Interconnect.h:126
const Aws::String & GetLocation() const
Definition: Interconnect.h:132
const Aws::String & GetBandwidth() const
Definition: Interconnect.h:153
Interconnect & WithRegion(const char *value)
Definition: Interconnect.h:129
Interconnect & WithInterconnectId(Aws::String &&value)
Definition: Interconnect.h:69
void SetBandwidth(const Aws::String &value)
Definition: Interconnect.h:156
JSON (JavaScript Object Notation).
Interconnect & WithInterconnectName(const Aws::String &value)
Definition: Interconnect.h:87