AWS SDK for C++  0.12.9
AWS SDK for C++
GatewayInfo.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace StorageGateway
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  GatewayInfo();
40  GatewayInfo(const Aws::Utils::Json::JsonValue& jsonValue);
41  GatewayInfo& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
49  inline const Aws::String& GetGatewayId() const{ return m_gatewayId; }
50 
56  inline void SetGatewayId(const Aws::String& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
57 
63  inline void SetGatewayId(Aws::String&& value) { m_gatewayIdHasBeenSet = true; m_gatewayId = value; }
64 
70  inline void SetGatewayId(const char* value) { m_gatewayIdHasBeenSet = true; m_gatewayId.assign(value); }
71 
77  inline GatewayInfo& WithGatewayId(const Aws::String& value) { SetGatewayId(value); return *this;}
78 
84  inline GatewayInfo& WithGatewayId(Aws::String&& value) { SetGatewayId(value); return *this;}
85 
91  inline GatewayInfo& WithGatewayId(const char* value) { SetGatewayId(value); return *this;}
92 
97  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
98 
103  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
104 
109  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
110 
115  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
116 
121  inline GatewayInfo& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
122 
127  inline GatewayInfo& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
128 
133  inline GatewayInfo& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
134 
138  inline const Aws::String& GetGatewayType() const{ return m_gatewayType; }
139 
143  inline void SetGatewayType(const Aws::String& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
144 
148  inline void SetGatewayType(Aws::String&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
149 
153  inline void SetGatewayType(const char* value) { m_gatewayTypeHasBeenSet = true; m_gatewayType.assign(value); }
154 
158  inline GatewayInfo& WithGatewayType(const Aws::String& value) { SetGatewayType(value); return *this;}
159 
163  inline GatewayInfo& WithGatewayType(Aws::String&& value) { SetGatewayType(value); return *this;}
164 
168  inline GatewayInfo& WithGatewayType(const char* value) { SetGatewayType(value); return *this;}
169 
173  inline const Aws::String& GetGatewayOperationalState() const{ return m_gatewayOperationalState; }
174 
178  inline void SetGatewayOperationalState(const Aws::String& value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState = value; }
179 
183  inline void SetGatewayOperationalState(Aws::String&& value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState = value; }
184 
188  inline void SetGatewayOperationalState(const char* value) { m_gatewayOperationalStateHasBeenSet = true; m_gatewayOperationalState.assign(value); }
189 
193  inline GatewayInfo& WithGatewayOperationalState(const Aws::String& value) { SetGatewayOperationalState(value); return *this;}
194 
198  inline GatewayInfo& WithGatewayOperationalState(Aws::String&& value) { SetGatewayOperationalState(value); return *this;}
199 
203  inline GatewayInfo& WithGatewayOperationalState(const char* value) { SetGatewayOperationalState(value); return *this;}
204 
208  inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
209 
213  inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
214 
218  inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
219 
223  inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
224 
228  inline GatewayInfo& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
229 
233  inline GatewayInfo& WithGatewayName(Aws::String&& value) { SetGatewayName(value); return *this;}
234 
238  inline GatewayInfo& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
239 
240  private:
241  Aws::String m_gatewayId;
242  bool m_gatewayIdHasBeenSet;
243  Aws::String m_gatewayARN;
244  bool m_gatewayARNHasBeenSet;
245  Aws::String m_gatewayType;
246  bool m_gatewayTypeHasBeenSet;
247  Aws::String m_gatewayOperationalState;
248  bool m_gatewayOperationalStateHasBeenSet;
249  Aws::String m_gatewayName;
250  bool m_gatewayNameHasBeenSet;
251  };
252 
253 } // namespace Model
254 } // namespace StorageGateway
255 } // namespace Aws
void SetGatewayARN(Aws::String &&value)
Definition: GatewayInfo.h:109
GatewayInfo & WithGatewayType(Aws::String &&value)
Definition: GatewayInfo.h:163
GatewayInfo & WithGatewayName(const Aws::String &value)
Definition: GatewayInfo.h:228
GatewayInfo & WithGatewayARN(const char *value)
Definition: GatewayInfo.h:133
void SetGatewayId(const char *value)
Definition: GatewayInfo.h:70
void SetGatewayOperationalState(const Aws::String &value)
Definition: GatewayInfo.h:178
void SetGatewayType(const Aws::String &value)
Definition: GatewayInfo.h:143
GatewayInfo & WithGatewayId(const Aws::String &value)
Definition: GatewayInfo.h:77
GatewayInfo & WithGatewayName(const char *value)
Definition: GatewayInfo.h:238
void SetGatewayName(Aws::String &&value)
Definition: GatewayInfo.h:218
void SetGatewayOperationalState(Aws::String &&value)
Definition: GatewayInfo.h:183
void SetGatewayType(Aws::String &&value)
Definition: GatewayInfo.h:148
GatewayInfo & WithGatewayOperationalState(const Aws::String &value)
Definition: GatewayInfo.h:193
void SetGatewayType(const char *value)
Definition: GatewayInfo.h:153
const Aws::String & GetGatewayId() const
Definition: GatewayInfo.h:49
const Aws::String & GetGatewayType() const
Definition: GatewayInfo.h:138
GatewayInfo & WithGatewayARN(Aws::String &&value)
Definition: GatewayInfo.h:127
void SetGatewayARN(const char *value)
Definition: GatewayInfo.h:115
void SetGatewayId(const Aws::String &value)
Definition: GatewayInfo.h:56
GatewayInfo & WithGatewayName(Aws::String &&value)
Definition: GatewayInfo.h:233
GatewayInfo & WithGatewayARN(const Aws::String &value)
Definition: GatewayInfo.h:121
GatewayInfo & WithGatewayType(const char *value)
Definition: GatewayInfo.h:168
GatewayInfo & WithGatewayId(Aws::String &&value)
Definition: GatewayInfo.h:84
void SetGatewayName(const Aws::String &value)
Definition: GatewayInfo.h:213
const Aws::String & GetGatewayName() const
Definition: GatewayInfo.h:208
void SetGatewayOperationalState(const char *value)
Definition: GatewayInfo.h:188
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetGatewayARN() const
Definition: GatewayInfo.h:97
void SetGatewayARN(const Aws::String &value)
Definition: GatewayInfo.h:103
GatewayInfo & WithGatewayType(const Aws::String &value)
Definition: GatewayInfo.h:158
GatewayInfo & WithGatewayId(const char *value)
Definition: GatewayInfo.h:91
#define AWS_STORAGEGATEWAY_API
void SetGatewayName(const char *value)
Definition: GatewayInfo.h:223
void SetGatewayId(Aws::String &&value)
Definition: GatewayInfo.h:63
GatewayInfo & WithGatewayOperationalState(Aws::String &&value)
Definition: GatewayInfo.h:198
GatewayInfo & WithGatewayOperationalState(const char *value)
Definition: GatewayInfo.h:203
JSON (JavaScript Object Notation).
const Aws::String & GetGatewayOperationalState() const
Definition: GatewayInfo.h:173