AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActivationKeyT = Aws::String>
65 void SetActivationKey(ActivationKeyT&& value) { m_activationKeyHasBeenSet = true; m_activationKey = std::forward<ActivationKeyT>(value); }
66 template<typename ActivationKeyT = Aws::String>
67 ActivateGatewayRequest& WithActivationKey(ActivationKeyT&& value) { SetActivationKey(std::forward<ActivationKeyT>(value)); return *this;}
69
71
74 inline const Aws::String& GetGatewayName() const { return m_gatewayName; }
75 inline bool GatewayNameHasBeenSet() const { return m_gatewayNameHasBeenSet; }
76 template<typename GatewayNameT = Aws::String>
77 void SetGatewayName(GatewayNameT&& value) { m_gatewayNameHasBeenSet = true; m_gatewayName = std::forward<GatewayNameT>(value); }
78 template<typename GatewayNameT = Aws::String>
79 ActivateGatewayRequest& WithGatewayName(GatewayNameT&& value) { SetGatewayName(std::forward<GatewayNameT>(value)); return *this;}
81
83
91 inline const Aws::String& GetGatewayTimezone() const { return m_gatewayTimezone; }
92 inline bool GatewayTimezoneHasBeenSet() const { return m_gatewayTimezoneHasBeenSet; }
93 template<typename GatewayTimezoneT = Aws::String>
94 void SetGatewayTimezone(GatewayTimezoneT&& value) { m_gatewayTimezoneHasBeenSet = true; m_gatewayTimezone = std::forward<GatewayTimezoneT>(value); }
95 template<typename GatewayTimezoneT = Aws::String>
96 ActivateGatewayRequest& WithGatewayTimezone(GatewayTimezoneT&& value) { SetGatewayTimezone(std::forward<GatewayTimezoneT>(value)); return *this;}
98
100
113 inline const Aws::String& GetGatewayRegion() const { return m_gatewayRegion; }
114 inline bool GatewayRegionHasBeenSet() const { return m_gatewayRegionHasBeenSet; }
115 template<typename GatewayRegionT = Aws::String>
116 void SetGatewayRegion(GatewayRegionT&& value) { m_gatewayRegionHasBeenSet = true; m_gatewayRegion = std::forward<GatewayRegionT>(value); }
117 template<typename GatewayRegionT = Aws::String>
118 ActivateGatewayRequest& WithGatewayRegion(GatewayRegionT&& value) { SetGatewayRegion(std::forward<GatewayRegionT>(value)); return *this;}
120
122
134 inline const Aws::String& GetGatewayType() const { return m_gatewayType; }
135 inline bool GatewayTypeHasBeenSet() const { return m_gatewayTypeHasBeenSet; }
136 template<typename GatewayTypeT = Aws::String>
137 void SetGatewayType(GatewayTypeT&& value) { m_gatewayTypeHasBeenSet = true; m_gatewayType = std::forward<GatewayTypeT>(value); }
138 template<typename GatewayTypeT = Aws::String>
139 ActivateGatewayRequest& WithGatewayType(GatewayTypeT&& value) { SetGatewayType(std::forward<GatewayTypeT>(value)); return *this;}
141
143
147 inline const Aws::String& GetTapeDriveType() const { return m_tapeDriveType; }
148 inline bool TapeDriveTypeHasBeenSet() const { return m_tapeDriveTypeHasBeenSet; }
149 template<typename TapeDriveTypeT = Aws::String>
150 void SetTapeDriveType(TapeDriveTypeT&& value) { m_tapeDriveTypeHasBeenSet = true; m_tapeDriveType = std::forward<TapeDriveTypeT>(value); }
151 template<typename TapeDriveTypeT = Aws::String>
152 ActivateGatewayRequest& WithTapeDriveType(TapeDriveTypeT&& value) { SetTapeDriveType(std::forward<TapeDriveTypeT>(value)); return *this;}
154
156
161 inline const Aws::String& GetMediumChangerType() const { return m_mediumChangerType; }
162 inline bool MediumChangerTypeHasBeenSet() const { return m_mediumChangerTypeHasBeenSet; }
163 template<typename MediumChangerTypeT = Aws::String>
164 void SetMediumChangerType(MediumChangerTypeT&& value) { m_mediumChangerTypeHasBeenSet = true; m_mediumChangerType = std::forward<MediumChangerTypeT>(value); }
165 template<typename MediumChangerTypeT = Aws::String>
166 ActivateGatewayRequest& WithMediumChangerType(MediumChangerTypeT&& value) { SetMediumChangerType(std::forward<MediumChangerTypeT>(value)); return *this;}
168
170
178 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
179 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
180 template<typename TagsT = Aws::Vector<Tag>>
181 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
182 template<typename TagsT = Aws::Vector<Tag>>
183 ActivateGatewayRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
184 template<typename TagsT = Tag>
185 ActivateGatewayRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
187 private:
188
189 Aws::String m_activationKey;
190 bool m_activationKeyHasBeenSet = false;
191
192 Aws::String m_gatewayName;
193 bool m_gatewayNameHasBeenSet = false;
194
195 Aws::String m_gatewayTimezone;
196 bool m_gatewayTimezoneHasBeenSet = false;
197
198 Aws::String m_gatewayRegion;
199 bool m_gatewayRegionHasBeenSet = false;
200
201 Aws::String m_gatewayType;
202 bool m_gatewayTypeHasBeenSet = false;
203
204 Aws::String m_tapeDriveType;
205 bool m_tapeDriveTypeHasBeenSet = false;
206
207 Aws::String m_mediumChangerType;
208 bool m_mediumChangerTypeHasBeenSet = false;
209
210 Aws::Vector<Tag> m_tags;
211 bool m_tagsHasBeenSet = false;
212 };
213
214} // namespace Model
215} // namespace StorageGateway
216} // namespace Aws
ActivateGatewayRequest & WithTags(TagsT &&value)
AWS_STORAGEGATEWAY_API ActivateGatewayRequest()=default
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ActivateGatewayRequest & WithGatewayType(GatewayTypeT &&value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ActivateGatewayRequest & WithGatewayRegion(GatewayRegionT &&value)
ActivateGatewayRequest & AddTags(TagsT &&value)
ActivateGatewayRequest & WithActivationKey(ActivationKeyT &&value)
ActivateGatewayRequest & WithGatewayName(GatewayNameT &&value)
ActivateGatewayRequest & WithMediumChangerType(MediumChangerTypeT &&value)
ActivateGatewayRequest & WithGatewayTimezone(GatewayTimezoneT &&value)
ActivateGatewayRequest & WithTapeDriveType(TapeDriveTypeT &&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