AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateGatewayRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/BackupGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/backup-gateway/model/GatewayType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/backup-gateway/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace BackupGateway
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_BACKUPGATEWAY_API CreateGatewayRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateGateway"; }
34
35 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
36
37 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38
39
41
44 inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
45 inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
46 inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
47 inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); }
48 inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
49 inline CreateGatewayRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
50 inline CreateGatewayRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;}
51 inline CreateGatewayRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
53
55
58 inline const Aws::String& GetGatewayDisplayName() const{ return m_gatewayDisplayName; }
59 inline bool GatewayDisplayNameHasBeenSet() const { return m_gatewayDisplayNameHasBeenSet; }
60 inline void SetGatewayDisplayName(const Aws::String& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = value; }
61 inline void SetGatewayDisplayName(Aws::String&& value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName = std::move(value); }
62 inline void SetGatewayDisplayName(const char* value) { m_gatewayDisplayNameHasBeenSet = true; m_gatewayDisplayName.assign(value); }
64 inline CreateGatewayRequest& WithGatewayDisplayName(Aws::String&& value) { SetGatewayDisplayName(std::move(value)); return *this;}
65 inline CreateGatewayRequest& WithGatewayDisplayName(const char* value) { SetGatewayDisplayName(value); return *this;}
67
69
72 inline const GatewayType& GetGatewayType() const{ return m_gatewayType; }
73 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
74 inline void SetGatewayType(const GatewayType& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
75 inline void SetGatewayType(GatewayType&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); }
76 inline CreateGatewayRequest& WithGatewayType(const GatewayType& value) { SetGatewayType(value); return *this;}
77 inline CreateGatewayRequest& WithGatewayType(GatewayType&& value) { SetGatewayType(std::move(value)); return *this;}
79
81
85 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
88 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
89 inline CreateGatewayRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
90 inline CreateGatewayRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
91 inline CreateGatewayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
92 inline CreateGatewayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
94 private:
95
96 Aws::String m_activationKey;
97 bool m_activationKeyHasBeenSet = false;
98
99 Aws::String m_gatewayDisplayName;
100 bool m_gatewayDisplayNameHasBeenSet = false;
101
102 GatewayType m_gatewayType;
103 bool m_gatewayTypeHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace BackupGateway
111} // namespace Aws
CreateGatewayRequest & WithActivationKey(Aws::String &&value)
CreateGatewayRequest & WithGatewayDisplayName(Aws::String &&value)
CreateGatewayRequest & WithGatewayType(GatewayType &&value)
virtual const char * GetServiceRequestName() const override
CreateGatewayRequest & AddTags(const Tag &value)
CreateGatewayRequest & WithGatewayType(const GatewayType &value)
CreateGatewayRequest & AddTags(Tag &&value)
CreateGatewayRequest & WithActivationKey(const Aws::String &value)
CreateGatewayRequest & WithActivationKey(const char *value)
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateGatewayRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateGatewayRequest & WithGatewayDisplayName(const char *value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
CreateGatewayRequest & WithTags(Aws::Vector< Tag > &&value)
CreateGatewayRequest & WithGatewayDisplayName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector