AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTapesRequest.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
27 {
28 public:
29 AWS_STORAGEGATEWAY_API CreateTapesRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateTapes"; }
36
37 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
38
39 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
49 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
50 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
51 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
52 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
53 inline CreateTapesRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
54 inline CreateTapesRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
55 inline CreateTapesRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
57
59
63 inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
64 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
65 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
66 inline CreateTapesRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
68
70
76 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
77 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
78 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
79 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
80 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
81 inline CreateTapesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
82 inline CreateTapesRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
83 inline CreateTapesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
85
87
90 inline int GetNumTapesToCreate() const{ return m_numTapesToCreate; }
91 inline bool NumTapesToCreateHasBeenSet() const { return m_numTapesToCreateHasBeenSet; }
92 inline void SetNumTapesToCreate(int value) { m_numTapesToCreateHasBeenSet = true; m_numTapesToCreate = value; }
93 inline CreateTapesRequest& WithNumTapesToCreate(int value) { SetNumTapesToCreate(value); return *this;}
95
97
103 inline const Aws::String& GetTapeBarcodePrefix() const{ return m_tapeBarcodePrefix; }
104 inline bool TapeBarcodePrefixHasBeenSet() const { return m_tapeBarcodePrefixHasBeenSet; }
105 inline void SetTapeBarcodePrefix(const Aws::String& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = value; }
106 inline void SetTapeBarcodePrefix(Aws::String&& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = std::move(value); }
107 inline void SetTapeBarcodePrefix(const char* value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix.assign(value); }
108 inline CreateTapesRequest& WithTapeBarcodePrefix(const Aws::String& value) { SetTapeBarcodePrefix(value); return *this;}
109 inline CreateTapesRequest& WithTapeBarcodePrefix(Aws::String&& value) { SetTapeBarcodePrefix(std::move(value)); return *this;}
110 inline CreateTapesRequest& WithTapeBarcodePrefix(const char* value) { SetTapeBarcodePrefix(value); return *this;}
112
114
119 inline bool GetKMSEncrypted() const{ return m_kMSEncrypted; }
120 inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; }
121 inline void SetKMSEncrypted(bool value) { m_kMSEncryptedHasBeenSet = true; m_kMSEncrypted = value; }
122 inline CreateTapesRequest& WithKMSEncrypted(bool value) { SetKMSEncrypted(value); return *this;}
124
126
132 inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
133 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
134 inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
135 inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
136 inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
137 inline CreateTapesRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
138 inline CreateTapesRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
139 inline CreateTapesRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
141
143
150 inline const Aws::String& GetPoolId() const{ return m_poolId; }
151 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
152 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
153 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
154 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
155 inline CreateTapesRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
156 inline CreateTapesRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
157 inline CreateTapesRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
159
161
165 inline bool GetWorm() const{ return m_worm; }
166 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
167 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
168 inline CreateTapesRequest& WithWorm(bool value) { SetWorm(value); return *this;}
170
172
179 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
180 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
181 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
182 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
183 inline CreateTapesRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
184 inline CreateTapesRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
185 inline CreateTapesRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
186 inline CreateTapesRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
188 private:
189
190 Aws::String m_gatewayARN;
191 bool m_gatewayARNHasBeenSet = false;
192
193 long long m_tapeSizeInBytes;
194 bool m_tapeSizeInBytesHasBeenSet = false;
195
196 Aws::String m_clientToken;
197 bool m_clientTokenHasBeenSet = false;
198
199 int m_numTapesToCreate;
200 bool m_numTapesToCreateHasBeenSet = false;
201
202 Aws::String m_tapeBarcodePrefix;
203 bool m_tapeBarcodePrefixHasBeenSet = false;
204
205 bool m_kMSEncrypted;
206 bool m_kMSEncryptedHasBeenSet = false;
207
208 Aws::String m_kMSKey;
209 bool m_kMSKeyHasBeenSet = false;
210
211 Aws::String m_poolId;
212 bool m_poolIdHasBeenSet = false;
213
214 bool m_worm;
215 bool m_wormHasBeenSet = false;
216
217 Aws::Vector<Tag> m_tags;
218 bool m_tagsHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace StorageGateway
223} // namespace Aws
CreateTapesRequest & WithPoolId(const Aws::String &value)
CreateTapesRequest & WithKMSKey(const char *value)
CreateTapesRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateTapesRequest & WithPoolId(Aws::String &&value)
CreateTapesRequest & WithClientToken(const char *value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
void SetTapeBarcodePrefix(const Aws::String &value)
CreateTapesRequest & WithPoolId(const char *value)
CreateTapesRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTapesRequest & WithKMSEncrypted(bool value)
CreateTapesRequest & WithKMSKey(const Aws::String &value)
CreateTapesRequest & WithGatewayARN(Aws::String &&value)
CreateTapesRequest & WithGatewayARN(const Aws::String &value)
CreateTapesRequest & WithTapeBarcodePrefix(const char *value)
CreateTapesRequest & WithNumTapesToCreate(int value)
CreateTapesRequest & AddTags(const Tag &value)
CreateTapesRequest & WithClientToken(const Aws::String &value)
CreateTapesRequest & WithTapeSizeInBytes(long long value)
CreateTapesRequest & WithClientToken(Aws::String &&value)
CreateTapesRequest & WithKMSKey(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTapesRequest & WithTapeBarcodePrefix(Aws::String &&value)
CreateTapesRequest & WithTapeBarcodePrefix(const Aws::String &value)
CreateTapesRequest & WithGatewayARN(const char *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