AWS SDK for C++  0.14.3
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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace DirectConnect
31 {
32 namespace Model
33 {
34 
47  {
48  public:
49  Interconnect();
50  Interconnect(const Aws::Utils::Json::JsonValue& jsonValue);
51  Interconnect& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
52  Aws::Utils::Json::JsonValue Jsonize() const;
53 
54 
55  inline const Aws::String& GetInterconnectId() const{ return m_interconnectId; }
56 
57 
58  inline void SetInterconnectId(const Aws::String& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; }
59 
60 
61  inline void SetInterconnectId(Aws::String&& value) { m_interconnectIdHasBeenSet = true; m_interconnectId = value; }
62 
63 
64  inline void SetInterconnectId(const char* value) { m_interconnectIdHasBeenSet = true; m_interconnectId.assign(value); }
65 
66 
67  inline Interconnect& WithInterconnectId(const Aws::String& value) { SetInterconnectId(value); return *this;}
68 
69 
70  inline Interconnect& WithInterconnectId(Aws::String&& value) { SetInterconnectId(value); return *this;}
71 
72 
73  inline Interconnect& WithInterconnectId(const char* value) { SetInterconnectId(value); return *this;}
74 
75 
76  inline const Aws::String& GetInterconnectName() const{ return m_interconnectName; }
77 
78 
79  inline void SetInterconnectName(const Aws::String& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = value; }
80 
81 
82  inline void SetInterconnectName(Aws::String&& value) { m_interconnectNameHasBeenSet = true; m_interconnectName = value; }
83 
84 
85  inline void SetInterconnectName(const char* value) { m_interconnectNameHasBeenSet = true; m_interconnectName.assign(value); }
86 
87 
88  inline Interconnect& WithInterconnectName(const Aws::String& value) { SetInterconnectName(value); return *this;}
89 
90 
91  inline Interconnect& WithInterconnectName(Aws::String&& value) { SetInterconnectName(value); return *this;}
92 
93 
94  inline Interconnect& WithInterconnectName(const char* value) { SetInterconnectName(value); return *this;}
95 
96 
97  inline const InterconnectState& GetInterconnectState() const{ return m_interconnectState; }
98 
99 
100  inline void SetInterconnectState(const InterconnectState& value) { m_interconnectStateHasBeenSet = true; m_interconnectState = value; }
101 
102 
103  inline void SetInterconnectState(InterconnectState&& value) { m_interconnectStateHasBeenSet = true; m_interconnectState = value; }
104 
105 
106  inline Interconnect& WithInterconnectState(const InterconnectState& value) { SetInterconnectState(value); return *this;}
107 
108 
109  inline Interconnect& WithInterconnectState(InterconnectState&& value) { SetInterconnectState(value); return *this;}
110 
111 
112  inline const Aws::String& GetRegion() const{ return m_region; }
113 
114 
115  inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
116 
117 
118  inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = value; }
119 
120 
121  inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
122 
123 
124  inline Interconnect& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
125 
126 
127  inline Interconnect& WithRegion(Aws::String&& value) { SetRegion(value); return *this;}
128 
129 
130  inline Interconnect& WithRegion(const char* value) { SetRegion(value); return *this;}
131 
132 
133  inline const Aws::String& GetLocation() const{ return m_location; }
134 
135 
136  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
137 
138 
139  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = value; }
140 
141 
142  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
143 
144 
145  inline Interconnect& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
146 
147 
148  inline Interconnect& WithLocation(Aws::String&& value) { SetLocation(value); return *this;}
149 
150 
151  inline Interconnect& WithLocation(const char* value) { SetLocation(value); return *this;}
152 
153 
154  inline const Aws::String& GetBandwidth() const{ return m_bandwidth; }
155 
156 
157  inline void SetBandwidth(const Aws::String& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
158 
159 
160  inline void SetBandwidth(Aws::String&& value) { m_bandwidthHasBeenSet = true; m_bandwidth = value; }
161 
162 
163  inline void SetBandwidth(const char* value) { m_bandwidthHasBeenSet = true; m_bandwidth.assign(value); }
164 
165 
166  inline Interconnect& WithBandwidth(const Aws::String& value) { SetBandwidth(value); return *this;}
167 
168 
169  inline Interconnect& WithBandwidth(Aws::String&& value) { SetBandwidth(value); return *this;}
170 
171 
172  inline Interconnect& WithBandwidth(const char* value) { SetBandwidth(value); return *this;}
173 
178  inline const Aws::Utils::DateTime& GetLoaIssueTime() const{ return m_loaIssueTime; }
179 
184  inline void SetLoaIssueTime(const Aws::Utils::DateTime& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = value; }
185 
190  inline void SetLoaIssueTime(Aws::Utils::DateTime&& value) { m_loaIssueTimeHasBeenSet = true; m_loaIssueTime = value; }
191 
196  inline Interconnect& WithLoaIssueTime(const Aws::Utils::DateTime& value) { SetLoaIssueTime(value); return *this;}
197 
202  inline Interconnect& WithLoaIssueTime(Aws::Utils::DateTime&& value) { SetLoaIssueTime(value); return *this;}
203 
204  private:
205  Aws::String m_interconnectId;
206  bool m_interconnectIdHasBeenSet;
207  Aws::String m_interconnectName;
208  bool m_interconnectNameHasBeenSet;
209  InterconnectState m_interconnectState;
210  bool m_interconnectStateHasBeenSet;
211  Aws::String m_region;
212  bool m_regionHasBeenSet;
213  Aws::String m_location;
214  bool m_locationHasBeenSet;
215  Aws::String m_bandwidth;
216  bool m_bandwidthHasBeenSet;
217  Aws::Utils::DateTime m_loaIssueTime;
218  bool m_loaIssueTimeHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace DirectConnect
223 } // namespace Aws
void SetBandwidth(const char *value)
Definition: Interconnect.h:163
void SetLocation(const char *value)
Definition: Interconnect.h:142
Interconnect & WithLoaIssueTime(const Aws::Utils::DateTime &value)
Definition: Interconnect.h:196
const InterconnectState & GetInterconnectState() const
Definition: Interconnect.h:97
void SetInterconnectName(const char *value)
Definition: Interconnect.h:85
Interconnect & WithInterconnectId(const Aws::String &value)
Definition: Interconnect.h:67
void SetInterconnectState(const InterconnectState &value)
Definition: Interconnect.h:100
void SetLoaIssueTime(const Aws::Utils::DateTime &value)
Definition: Interconnect.h:184
Interconnect & WithBandwidth(const Aws::String &value)
Definition: Interconnect.h:166
Interconnect & WithLocation(Aws::String &&value)
Definition: Interconnect.h:148
void SetInterconnectId(Aws::String &&value)
Definition: Interconnect.h:61
void SetLocation(const Aws::String &value)
Definition: Interconnect.h:136
void SetRegion(Aws::String &&value)
Definition: Interconnect.h:118
void SetLocation(Aws::String &&value)
Definition: Interconnect.h:139
const Aws::String & GetInterconnectId() const
Definition: Interconnect.h:55
void SetBandwidth(Aws::String &&value)
Definition: Interconnect.h:160
Interconnect & WithBandwidth(Aws::String &&value)
Definition: Interconnect.h:169
Interconnect & WithLocation(const char *value)
Definition: Interconnect.h:151
const Aws::String & GetInterconnectName() const
Definition: Interconnect.h:76
Interconnect & WithInterconnectId(const char *value)
Definition: Interconnect.h:73
Interconnect & WithInterconnectName(Aws::String &&value)
Definition: Interconnect.h:91
Interconnect & WithInterconnectName(const char *value)
Definition: Interconnect.h:94
Interconnect & WithLocation(const Aws::String &value)
Definition: Interconnect.h:145
void SetInterconnectId(const char *value)
Definition: Interconnect.h:64
void SetInterconnectName(Aws::String &&value)
Definition: Interconnect.h:82
void SetInterconnectState(InterconnectState &&value)
Definition: Interconnect.h:103
void SetInterconnectId(const Aws::String &value)
Definition: Interconnect.h:58
const Aws::String & GetRegion() const
Definition: Interconnect.h:112
void SetRegion(const Aws::String &value)
Definition: Interconnect.h:115
#define AWS_DIRECTCONNECT_API
Interconnect & WithRegion(const Aws::String &value)
Definition: Interconnect.h:124
Interconnect & WithBandwidth(const char *value)
Definition: Interconnect.h:172
Interconnect & WithInterconnectState(InterconnectState &&value)
Definition: Interconnect.h:109
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Interconnect & WithLoaIssueTime(Aws::Utils::DateTime &&value)
Definition: Interconnect.h:202
void SetInterconnectName(const Aws::String &value)
Definition: Interconnect.h:79
Interconnect & WithInterconnectState(const InterconnectState &value)
Definition: Interconnect.h:106
Interconnect & WithRegion(Aws::String &&value)
Definition: Interconnect.h:127
const Aws::String & GetLocation() const
Definition: Interconnect.h:133
const Aws::String & GetBandwidth() const
Definition: Interconnect.h:154
Interconnect & WithRegion(const char *value)
Definition: Interconnect.h:130
const Aws::Utils::DateTime & GetLoaIssueTime() const
Definition: Interconnect.h:178
Interconnect & WithInterconnectId(Aws::String &&value)
Definition: Interconnect.h:70
void SetBandwidth(const Aws::String &value)
Definition: Interconnect.h:157
void SetLoaIssueTime(Aws::Utils::DateTime &&value)
Definition: Interconnect.h:190
JSON (JavaScript Object Notation).
Interconnect & WithInterconnectName(const Aws::String &value)
Definition: Interconnect.h:88