AWS SDK for C++  0.12.9
AWS SDK for C++
ActivateGatewayRequest.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 StorageGateway
23 {
24 namespace Model
25 {
26 
38  {
39  public:
41  Aws::String SerializePayload() const override;
42 
43  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
44 
54  inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
55 
65  inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
66 
76  inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
77 
87  inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
88 
98  inline ActivateGatewayRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
99 
109  inline ActivateGatewayRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(value); return *this;}
110 
120  inline ActivateGatewayRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
121 
125  inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
126 
130  inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
131 
135  inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
136 
140  inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
141 
145  inline ActivateGatewayRequest& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
146 
150  inline ActivateGatewayRequest& WithGatewayName(Aws::String&& value) { SetGatewayName(value); return *this;}
151 
155  inline ActivateGatewayRequest& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
156 
162  inline const Aws::String& GetGatewayTimezone() const{ return m_gatewayTimezone; }
163 
169  inline void SetGatewayTimezone(const Aws::String& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = value; }
170 
176  inline void SetGatewayTimezone(Aws::String&& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = value; }
177 
183  inline void SetGatewayTimezone(const char* value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone.assign(value); }
184 
190  inline ActivateGatewayRequest& WithGatewayTimezone(const Aws::String& value) { SetGatewayTimezone(value); return *this;}
191 
197  inline ActivateGatewayRequest& WithGatewayTimezone(Aws::String&& value) { SetGatewayTimezone(value); return *this;}
198 
204  inline ActivateGatewayRequest& WithGatewayTimezone(const char* value) { SetGatewayTimezone(value); return *this;}
205 
217  inline const Aws::String& GetGatewayRegion() const{ return m_gatewayRegion; }
218 
230  inline void SetGatewayRegion(const Aws::String& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = value; }
231 
243  inline void SetGatewayRegion(Aws::String&& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = value; }
244 
256  inline void SetGatewayRegion(const char* value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion.assign(value); }
257 
269  inline ActivateGatewayRequest& WithGatewayRegion(const Aws::String& value) { SetGatewayRegion(value); return *this;}
270 
282  inline ActivateGatewayRequest& WithGatewayRegion(Aws::String&& value) { SetGatewayRegion(value); return *this;}
283 
295  inline ActivateGatewayRequest& WithGatewayRegion(const char* value) { SetGatewayRegion(value); return *this;}
296 
302  inline const Aws::String& GetGatewayType() const{ return m_gatewayType; }
303 
309  inline void SetGatewayType(const Aws::String& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
310 
316  inline void SetGatewayType(Aws::String&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
317 
323  inline void SetGatewayType(const char* value) { m_gatewayTypeHasBeenSet = true; m_gatewayType.assign(value); }
324 
330  inline ActivateGatewayRequest& WithGatewayType(const Aws::String& value) { SetGatewayType(value); return *this;}
331 
337  inline ActivateGatewayRequest& WithGatewayType(Aws::String&& value) { SetGatewayType(value); return *this;}
338 
344  inline ActivateGatewayRequest& WithGatewayType(const char* value) { SetGatewayType(value); return *this;}
345 
350  inline const Aws::String& GetTapeDriveType() const{ return m_tapeDriveType; }
351 
356  inline void SetTapeDriveType(const Aws::String& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = value; }
357 
362  inline void SetTapeDriveType(Aws::String&& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = value; }
363 
368  inline void SetTapeDriveType(const char* value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType.assign(value); }
369 
374  inline ActivateGatewayRequest& WithTapeDriveType(const Aws::String& value) { SetTapeDriveType(value); return *this;}
375 
380  inline ActivateGatewayRequest& WithTapeDriveType(Aws::String&& value) { SetTapeDriveType(value); return *this;}
381 
386  inline ActivateGatewayRequest& WithTapeDriveType(const char* value) { SetTapeDriveType(value); return *this;}
387 
392  inline const Aws::String& GetMediumChangerType() const{ return m_mediumChangerType; }
393 
398  inline void SetMediumChangerType(const Aws::String& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = value; }
399 
404  inline void SetMediumChangerType(Aws::String&& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = value; }
405 
410  inline void SetMediumChangerType(const char* value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType.assign(value); }
411 
416  inline ActivateGatewayRequest& WithMediumChangerType(const Aws::String& value) { SetMediumChangerType(value); return *this;}
417 
422  inline ActivateGatewayRequest& WithMediumChangerType(Aws::String&& value) { SetMediumChangerType(value); return *this;}
423 
428  inline ActivateGatewayRequest& WithMediumChangerType(const char* value) { SetMediumChangerType(value); return *this;}
429 
430  private:
431  Aws::String m_activationKey;
432  bool m_activationKeyHasBeenSet;
433  Aws::String m_gatewayName;
434  bool m_gatewayNameHasBeenSet;
435  Aws::String m_gatewayTimezone;
436  bool m_gatewayTimezoneHasBeenSet;
437  Aws::String m_gatewayRegion;
438  bool m_gatewayRegionHasBeenSet;
439  Aws::String m_gatewayType;
440  bool m_gatewayTypeHasBeenSet;
441  Aws::String m_tapeDriveType;
442  bool m_tapeDriveTypeHasBeenSet;
443  Aws::String m_mediumChangerType;
444  bool m_mediumChangerTypeHasBeenSet;
445  };
446 
447 } // namespace Model
448 } // namespace StorageGateway
449 } // namespace Aws
ActivateGatewayRequest & WithActivationKey(Aws::String &&value)
ActivateGatewayRequest & WithGatewayName(const char *value)
ActivateGatewayRequest & WithMediumChangerType(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
ActivateGatewayRequest & WithGatewayType(Aws::String &&value)
ActivateGatewayRequest & WithGatewayTimezone(const Aws::String &value)
ActivateGatewayRequest & WithGatewayType(const Aws::String &value)
ActivateGatewayRequest & WithGatewayRegion(const Aws::String &value)
ActivateGatewayRequest & WithMediumChangerType(const char *value)
ActivateGatewayRequest & WithGatewayTimezone(Aws::String &&value)
ActivateGatewayRequest & WithGatewayName(const Aws::String &value)
ActivateGatewayRequest & WithMediumChangerType(const Aws::String &value)
ActivateGatewayRequest & WithGatewayTimezone(const char *value)
ActivateGatewayRequest & WithTapeDriveType(Aws::String &&value)
ActivateGatewayRequest & WithTapeDriveType(const char *value)
ActivateGatewayRequest & WithActivationKey(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ActivateGatewayRequest & WithGatewayName(Aws::String &&value)
ActivateGatewayRequest & WithGatewayRegion(Aws::String &&value)
ActivateGatewayRequest & WithGatewayType(const char *value)
#define AWS_STORAGEGATEWAY_API
ActivateGatewayRequest & WithGatewayRegion(const char *value)
JSON (JavaScript Object Notation).
ActivateGatewayRequest & WithTapeDriveType(const Aws::String &value)
ActivateGatewayRequest & WithActivationKey(const Aws::String &value)