AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ActivateGatewayRequest.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/storagegateway/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace StorageGateway
17{
18namespace Model
19{
20
35 {
36 public:
37 AWS_STORAGEGATEWAY_API ActivateGatewayRequest();
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_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
46
47 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
48
49
51
62 inline const Aws::String& GetActivationKey() const{ return m_activationKey; }
63 inline bool ActivationKeyHasBeenSet() const { return m_activationKeyHasBeenSet; }
64 inline void SetActivationKey(const Aws::String& value) { m_activationKeyHasBeenSet = true; m_activationKey = value; }
65 inline void SetActivationKey(Aws::String&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::move(value); }
66 inline void SetActivationKey(const char* value) { m_activationKeyHasBeenSet = true; m_activationKey.assign(value); }
67 inline ActivateGatewayRequest& WithActivationKey(const Aws::String& value) { SetActivationKey(value); return *this;}
68 inline ActivateGatewayRequest& WithActivationKey(Aws::String&& value) { SetActivationKey(std::move(value)); return *this;}
69 inline ActivateGatewayRequest& WithActivationKey(const char* value) { SetActivationKey(value); return *this;}
71
73
76 inline const Aws::String& GetGatewayName() const{ return m_gatewayName; }
77 inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
78 inline void SetGatewayName(const Aws::String& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = value; }
79 inline void SetGatewayName(Aws::String&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::move(value); }
80 inline void SetGatewayName(const char* value) { m_gatewayNameHasBeenSet = true; m_gatewayName.assign(value); }
81 inline ActivateGatewayRequest& WithGatewayName(const Aws::String& value) { SetGatewayName(value); return *this;}
82 inline ActivateGatewayRequest& WithGatewayName(Aws::String&& value) { SetGatewayName(std::move(value)); return *this;}
83 inline ActivateGatewayRequest& WithGatewayName(const char* value) { SetGatewayName(value); return *this;}
85
87
95 inline const Aws::String& GetGatewayTimezone() const{ return m_gatewayTimezone; }
96 inline bool GatewayTimezoneHasBeenSet() const { return m_gatewayTimezoneHasBeenSet; }
97 inline void SetGatewayTimezone(const Aws::String& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = value; }
98 inline void SetGatewayTimezone(Aws::String&& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = std::move(value); }
99 inline void SetGatewayTimezone(const char* value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone.assign(value); }
100 inline ActivateGatewayRequest& WithGatewayTimezone(const Aws::String& value) { SetGatewayTimezone(value); return *this;}
101 inline ActivateGatewayRequest& WithGatewayTimezone(Aws::String&& value) { SetGatewayTimezone(std::move(value)); return *this;}
102 inline ActivateGatewayRequest& WithGatewayTimezone(const char* value) { SetGatewayTimezone(value); return *this;}
104
106
119 inline const Aws::String& GetGatewayRegion() const{ return m_gatewayRegion; }
120 inline bool GatewayRegionHasBeenSet() const { return m_gatewayRegionHasBeenSet; }
121 inline void SetGatewayRegion(const Aws::String& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = value; }
122 inline void SetGatewayRegion(Aws::String&& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = std::move(value); }
123 inline void SetGatewayRegion(const char* value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion.assign(value); }
124 inline ActivateGatewayRequest& WithGatewayRegion(const Aws::String& value) { SetGatewayRegion(value); return *this;}
125 inline ActivateGatewayRequest& WithGatewayRegion(Aws::String&& value) { SetGatewayRegion(std::move(value)); return *this;}
126 inline ActivateGatewayRequest& WithGatewayRegion(const char* value) { SetGatewayRegion(value); return *this;}
128
130
142 inline const Aws::String& GetGatewayType() const{ return m_gatewayType; }
143 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
144 inline void SetGatewayType(const Aws::String& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = value; }
145 inline void SetGatewayType(Aws::String&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::move(value); }
146 inline void SetGatewayType(const char* value) { m_gatewayTypeHasBeenSet = true; m_gatewayType.assign(value); }
147 inline ActivateGatewayRequest& WithGatewayType(const Aws::String& value) { SetGatewayType(value); return *this;}
148 inline ActivateGatewayRequest& WithGatewayType(Aws::String&& value) { SetGatewayType(std::move(value)); return *this;}
149 inline ActivateGatewayRequest& WithGatewayType(const char* value) { SetGatewayType(value); return *this;}
151
153
157 inline const Aws::String& GetTapeDriveType() const{ return m_tapeDriveType; }
158 inline bool TapeDriveTypeHasBeenSet() const { return m_tapeDriveTypeHasBeenSet; }
159 inline void SetTapeDriveType(const Aws::String& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = value; }
160 inline void SetTapeDriveType(Aws::String&& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = std::move(value); }
161 inline void SetTapeDriveType(const char* value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType.assign(value); }
162 inline ActivateGatewayRequest& WithTapeDriveType(const Aws::String& value) { SetTapeDriveType(value); return *this;}
163 inline ActivateGatewayRequest& WithTapeDriveType(Aws::String&& value) { SetTapeDriveType(std::move(value)); return *this;}
164 inline ActivateGatewayRequest& WithTapeDriveType(const char* value) { SetTapeDriveType(value); return *this;}
166
168
173 inline const Aws::String& GetMediumChangerType() const{ return m_mediumChangerType; }
174 inline bool MediumChangerTypeHasBeenSet() const { return m_mediumChangerTypeHasBeenSet; }
175 inline void SetMediumChangerType(const Aws::String& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = value; }
176 inline void SetMediumChangerType(Aws::String&& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = std::move(value); }
177 inline void SetMediumChangerType(const char* value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType.assign(value); }
179 inline ActivateGatewayRequest& WithMediumChangerType(Aws::String&& value) { SetMediumChangerType(std::move(value)); return *this;}
180 inline ActivateGatewayRequest& WithMediumChangerType(const char* value) { SetMediumChangerType(value); return *this;}
182
184
192 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
193 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
194 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
195 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
196 inline ActivateGatewayRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
197 inline ActivateGatewayRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
198 inline ActivateGatewayRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
199 inline ActivateGatewayRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
201 private:
202
203 Aws::String m_activationKey;
204 bool m_activationKeyHasBeenSet = false;
205
206 Aws::String m_gatewayName;
207 bool m_gatewayNameHasBeenSet = false;
208
209 Aws::String m_gatewayTimezone;
210 bool m_gatewayTimezoneHasBeenSet = false;
211
212 Aws::String m_gatewayRegion;
213 bool m_gatewayRegionHasBeenSet = false;
214
215 Aws::String m_gatewayType;
216 bool m_gatewayTypeHasBeenSet = false;
217
218 Aws::String m_tapeDriveType;
219 bool m_tapeDriveTypeHasBeenSet = false;
220
221 Aws::String m_mediumChangerType;
222 bool m_mediumChangerTypeHasBeenSet = false;
223
224 Aws::Vector<Tag> m_tags;
225 bool m_tagsHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace StorageGateway
230} // namespace Aws
ActivateGatewayRequest & WithGatewayRegion(const Aws::String &value)
ActivateGatewayRequest & WithGatewayName(const Aws::String &value)
ActivateGatewayRequest & WithGatewayTimezone(Aws::String &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ActivateGatewayRequest & WithActivationKey(const char *value)
ActivateGatewayRequest & WithGatewayTimezone(const Aws::String &value)
ActivateGatewayRequest & WithGatewayType(const Aws::String &value)
ActivateGatewayRequest & WithGatewayTimezone(const char *value)
ActivateGatewayRequest & WithMediumChangerType(const Aws::String &value)
ActivateGatewayRequest & WithActivationKey(Aws::String &&value)
ActivateGatewayRequest & WithGatewayRegion(Aws::String &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
ActivateGatewayRequest & AddTags(const Tag &value)
ActivateGatewayRequest & WithGatewayType(Aws::String &&value)
ActivateGatewayRequest & WithTapeDriveType(const Aws::String &value)
ActivateGatewayRequest & WithTapeDriveType(const char *value)
ActivateGatewayRequest & WithTags(const Aws::Vector< Tag > &value)
ActivateGatewayRequest & WithMediumChangerType(const char *value)
ActivateGatewayRequest & WithGatewayName(const char *value)
virtual const char * GetServiceRequestName() const override
ActivateGatewayRequest & WithGatewayType(const char *value)
ActivateGatewayRequest & WithMediumChangerType(Aws::String &&value)
ActivateGatewayRequest & WithActivationKey(const Aws::String &value)
ActivateGatewayRequest & WithGatewayRegion(const char *value)
ActivateGatewayRequest & WithGatewayName(Aws::String &&value)
ActivateGatewayRequest & WithTapeDriveType(Aws::String &&value)
ActivateGatewayRequest & WithTags(Aws::Vector< Tag > &&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