AWS SDK for C++  1.9.108
AWS SDK for C++
ActivateGatewayRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
35  {
36  public:
38 
39  // Service request name is the Operation name which will send this request out,
40  // each operation should has unique request name, so that we can get operation's name from this request.
41  // Note: this is not true for response, multiple operations may have the same response name,
42  // so we can not get operation's name from response.
43  inline virtual const char* GetServiceRequestName() const override { return "ActivateGateway"; }
44 
45  Aws::String SerializePayload() const override;
46 
48 
49 
61  inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
62 
74  inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
75 
87  inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
88 
100  inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); }
101 
113  inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
114 
126  inline ActivateGatewayRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
127 
139  inline ActivateGatewayRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;}
140 
152  inline ActivateGatewayRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
153 
154 
158  inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
159 
163  inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
164 
168  inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
169 
173  inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::move(value); }
174 
178  inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
179 
183  inline ActivateGatewayRequest& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
184 
188  inline ActivateGatewayRequest& WithGatewayName(Aws::String&& value) { SetGatewayName(std::move(value)); return *this;}
189 
193  inline ActivateGatewayRequest& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
194 
195 
203  inline const Aws::String& GetGatewayTimezone() const{ return m_gatewayTimezone; }
204 
212  inline bool GatewayTimezoneHasBeenSet() const { return m_gatewayTimezoneHasBeenSet; }
213 
221  inline void SetGatewayTimezone(const Aws::String& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = value; }
222 
230  inline void SetGatewayTimezone(Aws::String&& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = std::move(value); }
231 
239  inline void SetGatewayTimezone(const char* value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone.assign(value); }
240 
248  inline ActivateGatewayRequest& WithGatewayTimezone(const Aws::String& value) { SetGatewayTimezone(value); return *this;}
249 
257  inline ActivateGatewayRequest& WithGatewayTimezone(Aws::String&& value) { SetGatewayTimezone(std::move(value)); return *this;}
258 
266  inline ActivateGatewayRequest& WithGatewayTimezone(const char* value) { SetGatewayTimezone(value); return *this;}
267 
268 
281  inline const Aws::String& GetGatewayRegion() const{ return m_gatewayRegion; }
282 
295  inline bool GatewayRegionHasBeenSet() const { return m_gatewayRegionHasBeenSet; }
296 
309  inline void SetGatewayRegion(const Aws::String& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = value; }
310 
323  inline void SetGatewayRegion(Aws::String&& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = std::move(value); }
324 
337  inline void SetGatewayRegion(const char* value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion.assign(value); }
338 
351  inline ActivateGatewayRequest& WithGatewayRegion(const Aws::String& value) { SetGatewayRegion(value); return *this;}
352 
365  inline ActivateGatewayRequest& WithGatewayRegion(Aws::String&& value) { SetGatewayRegion(std::move(value)); return *this;}
366 
379  inline ActivateGatewayRequest& WithGatewayRegion(const char* value) { SetGatewayRegion(value); return *this;}
380 
381 
389  inline const Aws::String& GetGatewayType() const{ return m_gatewayType; }
390 
398  inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
399 
407  inline void SetGatewayType(const Aws::String& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
408 
416  inline void SetGatewayType(Aws::String&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); }
417 
425  inline void SetGatewayType(const char* value) { m_gatewayTypeHasBeenSet = true; m_gatewayType.assign(value); }
426 
434  inline ActivateGatewayRequest& WithGatewayType(const Aws::String& value) { SetGatewayType(value); return *this;}
435 
443  inline ActivateGatewayRequest& WithGatewayType(Aws::String&& value) { SetGatewayType(std::move(value)); return *this;}
444 
452  inline ActivateGatewayRequest& WithGatewayType(const char* value) { SetGatewayType(value); return *this;}
453 
454 
459  inline const Aws::String& GetTapeDriveType() const{ return m_tapeDriveType; }
460 
465  inline bool TapeDriveTypeHasBeenSet() const { return m_tapeDriveTypeHasBeenSet; }
466 
471  inline void SetTapeDriveType(const Aws::String& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = value; }
472 
477  inline void SetTapeDriveType(Aws::String&& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = std::move(value); }
478 
483  inline void SetTapeDriveType(const char* value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType.assign(value); }
484 
489  inline ActivateGatewayRequest& WithTapeDriveType(const Aws::String& value) { SetTapeDriveType(value); return *this;}
490 
495  inline ActivateGatewayRequest& WithTapeDriveType(Aws::String&& value) { SetTapeDriveType(std::move(value)); return *this;}
496 
501  inline ActivateGatewayRequest& WithTapeDriveType(const char* value) { SetTapeDriveType(value); return *this;}
502 
503 
509  inline const Aws::String& GetMediumChangerType() const{ return m_mediumChangerType; }
510 
516  inline bool MediumChangerTypeHasBeenSet() const { return m_mediumChangerTypeHasBeenSet; }
517 
523  inline void SetMediumChangerType(const Aws::String& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = value; }
524 
530  inline void SetMediumChangerType(Aws::String&& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = std::move(value); }
531 
537  inline void SetMediumChangerType(const char* value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType.assign(value); }
538 
544  inline ActivateGatewayRequest& WithMediumChangerType(const Aws::String& value) { SetMediumChangerType(value); return *this;}
545 
551  inline ActivateGatewayRequest& WithMediumChangerType(Aws::String&& value) { SetMediumChangerType(std::move(value)); return *this;}
552 
558  inline ActivateGatewayRequest& WithMediumChangerType(const char* value) { SetMediumChangerType(value); return *this;}
559 
560 
569  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
570 
579  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
580 
589  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
590 
599  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
600 
609  inline ActivateGatewayRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
610 
619  inline ActivateGatewayRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
620 
629  inline ActivateGatewayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
630 
639  inline ActivateGatewayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
640 
641  private:
642 
643  Aws::String m_activationKey;
644  bool m_activationKeyHasBeenSet;
645 
646  Aws::String m_gatewayName;
647  bool m_gatewayNameHasBeenSet;
648 
649  Aws::String m_gatewayTimezone;
650  bool m_gatewayTimezoneHasBeenSet;
651 
652  Aws::String m_gatewayRegion;
653  bool m_gatewayRegionHasBeenSet;
654 
655  Aws::String m_gatewayType;
656  bool m_gatewayTypeHasBeenSet;
657 
658  Aws::String m_tapeDriveType;
659  bool m_tapeDriveTypeHasBeenSet;
660 
661  Aws::String m_mediumChangerType;
662  bool m_mediumChangerTypeHasBeenSet;
663 
664  Aws::Vector<Tag> m_tags;
665  bool m_tagsHasBeenSet;
666  };
667 
668 } // namespace Model
669 } // namespace StorageGateway
670 } // namespace Aws
Aws::StorageGateway::Model::ActivateGatewayRequest::WithActivationKey
ActivateGatewayRequest & WithActivationKey(Aws::String &&value)
Definition: ActivateGatewayRequest.h:139
Aws::StorageGateway::Model::ActivateGatewayRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: ActivateGatewayRequest.h:579
Aws::StorageGateway::Model::ActivateGatewayRequest::GatewayNameHasBeenSet
bool GatewayNameHasBeenSet() const
Definition: ActivateGatewayRequest.h:163
Aws::StorageGateway::Model::ActivateGatewayRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: ActivateGatewayRequest.h:599
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayRegion
ActivateGatewayRequest & WithGatewayRegion(Aws::String &&value)
Definition: ActivateGatewayRequest.h:365
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayName
void SetGatewayName(const Aws::String &value)
Definition: ActivateGatewayRequest.h:168
Aws::StorageGateway::Model::ActivateGatewayRequest::WithMediumChangerType
ActivateGatewayRequest & WithMediumChangerType(const Aws::String &value)
Definition: ActivateGatewayRequest.h:544
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayTimezone
void SetGatewayTimezone(const Aws::String &value)
Definition: ActivateGatewayRequest.h:221
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayRegion
void SetGatewayRegion(const Aws::String &value)
Definition: ActivateGatewayRequest.h:309
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayName
ActivateGatewayRequest & WithGatewayName(const Aws::String &value)
Definition: ActivateGatewayRequest.h:183
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::ActivateGatewayRequest::SetActivationKey
void SetActivationKey(const char *value)
Definition: ActivateGatewayRequest.h:113
Aws::StorageGateway::Model::ActivateGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::ActivateGatewayRequest::AddTags
ActivateGatewayRequest & AddTags(Tag &&value)
Definition: ActivateGatewayRequest.h:639
Aws::StorageGateway::Model::ActivateGatewayRequest::SetMediumChangerType
void SetMediumChangerType(const Aws::String &value)
Definition: ActivateGatewayRequest.h:523
Aws::StorageGateway::Model::ActivateGatewayRequest::GetGatewayRegion
const Aws::String & GetGatewayRegion() const
Definition: ActivateGatewayRequest.h:281
Aws::StorageGateway::Model::ActivateGatewayRequest::AddTags
ActivateGatewayRequest & AddTags(const Tag &value)
Definition: ActivateGatewayRequest.h:629
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayTimezone
ActivateGatewayRequest & WithGatewayTimezone(const Aws::String &value)
Definition: ActivateGatewayRequest.h:248
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayRegion
void SetGatewayRegion(const char *value)
Definition: ActivateGatewayRequest.h:337
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayTimezone
ActivateGatewayRequest & WithGatewayTimezone(const char *value)
Definition: ActivateGatewayRequest.h:266
Aws::StorageGateway::Model::ActivateGatewayRequest::GetMediumChangerType
const Aws::String & GetMediumChangerType() const
Definition: ActivateGatewayRequest.h:509
Aws::StorageGateway::Model::ActivateGatewayRequest::MediumChangerTypeHasBeenSet
bool MediumChangerTypeHasBeenSet() const
Definition: ActivateGatewayRequest.h:516
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::ActivateGatewayRequest::SetMediumChangerType
void SetMediumChangerType(const char *value)
Definition: ActivateGatewayRequest.h:537
Aws::StorageGateway::Model::ActivateGatewayRequest::GetGatewayTimezone
const Aws::String & GetGatewayTimezone() const
Definition: ActivateGatewayRequest.h:203
AWSVector.h
Aws::StorageGateway::Model::ActivateGatewayRequest::WithMediumChangerType
ActivateGatewayRequest & WithMediumChangerType(Aws::String &&value)
Definition: ActivateGatewayRequest.h:551
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayRegion
ActivateGatewayRequest & WithGatewayRegion(const char *value)
Definition: ActivateGatewayRequest.h:379
Aws::StorageGateway::Model::ActivateGatewayRequest::SetTapeDriveType
void SetTapeDriveType(const char *value)
Definition: ActivateGatewayRequest.h:483
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayType
void SetGatewayType(const char *value)
Definition: ActivateGatewayRequest.h:425
Aws::StorageGateway::Model::ActivateGatewayRequest::WithTapeDriveType
ActivateGatewayRequest & WithTapeDriveType(const char *value)
Definition: ActivateGatewayRequest.h:501
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayName
void SetGatewayName(Aws::String &&value)
Definition: ActivateGatewayRequest.h:173
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::ActivateGatewayRequest::GatewayTypeHasBeenSet
bool GatewayTypeHasBeenSet() const
Definition: ActivateGatewayRequest.h:398
Aws::StorageGateway::Model::ActivateGatewayRequest::SetActivationKey
void SetActivationKey(const Aws::String &value)
Definition: ActivateGatewayRequest.h:87
Aws::StorageGateway::Model::ActivateGatewayRequest::ActivationKeyHasBeenSet
bool ActivationKeyHasBeenSet() const
Definition: ActivateGatewayRequest.h:74
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayType
ActivateGatewayRequest & WithGatewayType(const char *value)
Definition: ActivateGatewayRequest.h:452
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayType
ActivateGatewayRequest & WithGatewayType(const Aws::String &value)
Definition: ActivateGatewayRequest.h:434
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayTimezone
void SetGatewayTimezone(const char *value)
Definition: ActivateGatewayRequest.h:239
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayTimezone
void SetGatewayTimezone(Aws::String &&value)
Definition: ActivateGatewayRequest.h:230
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayName
ActivateGatewayRequest & WithGatewayName(const char *value)
Definition: ActivateGatewayRequest.h:193
Aws::StorageGateway::Model::ActivateGatewayRequest::WithMediumChangerType
ActivateGatewayRequest & WithMediumChangerType(const char *value)
Definition: ActivateGatewayRequest.h:558
Aws::StorageGateway::Model::ActivateGatewayRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: ActivateGatewayRequest.h:569
AWSString.h
Aws::StorageGateway::Model::ActivateGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ActivateGatewayRequest.h:43
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::ActivateGatewayRequest::SetTapeDriveType
void SetTapeDriveType(Aws::String &&value)
Definition: ActivateGatewayRequest.h:477
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayType
void SetGatewayType(const Aws::String &value)
Definition: ActivateGatewayRequest.h:407
Aws::StorageGateway::Model::ActivateGatewayRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::ActivateGatewayRequest::WithTags
ActivateGatewayRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: ActivateGatewayRequest.h:619
Aws::StorageGateway::Model::ActivateGatewayRequest::TapeDriveTypeHasBeenSet
bool TapeDriveTypeHasBeenSet() const
Definition: ActivateGatewayRequest.h:465
Aws::StorageGateway::Model::ActivateGatewayRequest::WithTags
ActivateGatewayRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: ActivateGatewayRequest.h:609
Aws::StorageGateway::Model::ActivateGatewayRequest::GetTapeDriveType
const Aws::String & GetTapeDriveType() const
Definition: ActivateGatewayRequest.h:459
Aws::StorageGateway::Model::ActivateGatewayRequest
Definition: ActivateGatewayRequest.h:35
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayTimezone
ActivateGatewayRequest & WithGatewayTimezone(Aws::String &&value)
Definition: ActivateGatewayRequest.h:257
Aws::StorageGateway::Model::ActivateGatewayRequest::WithTapeDriveType
ActivateGatewayRequest & WithTapeDriveType(const Aws::String &value)
Definition: ActivateGatewayRequest.h:489
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayRegion
ActivateGatewayRequest & WithGatewayRegion(const Aws::String &value)
Definition: ActivateGatewayRequest.h:351
Aws::StorageGateway::Model::ActivateGatewayRequest::GetActivationKey
const Aws::String & GetActivationKey() const
Definition: ActivateGatewayRequest.h:61
StorageGatewayRequest.h
Aws::StorageGateway::Model::ActivateGatewayRequest::GatewayTimezoneHasBeenSet
bool GatewayTimezoneHasBeenSet() const
Definition: ActivateGatewayRequest.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayName
void SetGatewayName(const char *value)
Definition: ActivateGatewayRequest.h:178
Tag.h
Aws::StorageGateway::Model::ActivateGatewayRequest::WithTapeDriveType
ActivateGatewayRequest & WithTapeDriveType(Aws::String &&value)
Definition: ActivateGatewayRequest.h:495
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::ActivateGatewayRequest::WithActivationKey
ActivateGatewayRequest & WithActivationKey(const char *value)
Definition: ActivateGatewayRequest.h:152
Aws::StorageGateway::Model::ActivateGatewayRequest::SetMediumChangerType
void SetMediumChangerType(Aws::String &&value)
Definition: ActivateGatewayRequest.h:530
Aws::StorageGateway::Model::ActivateGatewayRequest::GetGatewayType
const Aws::String & GetGatewayType() const
Definition: ActivateGatewayRequest.h:389
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayType
ActivateGatewayRequest & WithGatewayType(Aws::String &&value)
Definition: ActivateGatewayRequest.h:443
Aws::StorageGateway::Model::ActivateGatewayRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: ActivateGatewayRequest.h:589
Aws::StorageGateway::Model::ActivateGatewayRequest::SetTapeDriveType
void SetTapeDriveType(const Aws::String &value)
Definition: ActivateGatewayRequest.h:471
Aws::StorageGateway::Model::ActivateGatewayRequest::WithActivationKey
ActivateGatewayRequest & WithActivationKey(const Aws::String &value)
Definition: ActivateGatewayRequest.h:126
Aws::StorageGateway::Model::ActivateGatewayRequest::GatewayRegionHasBeenSet
bool GatewayRegionHasBeenSet() const
Definition: ActivateGatewayRequest.h:295
Aws::StorageGateway::Model::ActivateGatewayRequest::WithGatewayName
ActivateGatewayRequest & WithGatewayName(Aws::String &&value)
Definition: ActivateGatewayRequest.h:188
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayType
void SetGatewayType(Aws::String &&value)
Definition: ActivateGatewayRequest.h:416
Aws::StorageGateway::Model::ActivateGatewayRequest::GetGatewayName
const Aws::String & GetGatewayName() const
Definition: ActivateGatewayRequest.h:158
Aws::StorageGateway::Model::ActivateGatewayRequest::SetGatewayRegion
void SetGatewayRegion(Aws::String &&value)
Definition: ActivateGatewayRequest.h:323
Aws::StorageGateway::Model::ActivateGatewayRequest::SetActivationKey
void SetActivationKey(Aws::String &&value)
Definition: ActivateGatewayRequest.h:100
Aws::StorageGateway::Model::ActivateGatewayRequest::ActivateGatewayRequest
ActivateGatewayRequest()