AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTapeWithBarcodeRequest.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 CreateTapeWithBarcodeRequest();
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 "CreateTapeWithBarcode"; }
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 CreateTapeWithBarcodeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
54 inline CreateTapeWithBarcodeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
55 inline CreateTapeWithBarcodeRequest& 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 CreateTapeWithBarcodeRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
68
70
75 inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; }
76 inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
77 inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
78 inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::move(value); }
79 inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); }
80 inline CreateTapeWithBarcodeRequest& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
81 inline CreateTapeWithBarcodeRequest& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(std::move(value)); return *this;}
82 inline CreateTapeWithBarcodeRequest& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;}
84
86
91 inline bool GetKMSEncrypted() const{ return m_kMSEncrypted; }
92 inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; }
93 inline void SetKMSEncrypted(bool value) { m_kMSEncryptedHasBeenSet = true; m_kMSEncrypted = value; }
94 inline CreateTapeWithBarcodeRequest& WithKMSEncrypted(bool value) { SetKMSEncrypted(value); return *this;}
96
98
104 inline const Aws::String& GetKMSKey() const{ return m_kMSKey; }
105 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
106 inline void SetKMSKey(const Aws::String& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = value; }
107 inline void SetKMSKey(Aws::String&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::move(value); }
108 inline void SetKMSKey(const char* value) { m_kMSKeyHasBeenSet = true; m_kMSKey.assign(value); }
109 inline CreateTapeWithBarcodeRequest& WithKMSKey(const Aws::String& value) { SetKMSKey(value); return *this;}
110 inline CreateTapeWithBarcodeRequest& WithKMSKey(Aws::String&& value) { SetKMSKey(std::move(value)); return *this;}
111 inline CreateTapeWithBarcodeRequest& WithKMSKey(const char* value) { SetKMSKey(value); return *this;}
113
115
122 inline const Aws::String& GetPoolId() const{ return m_poolId; }
123 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
124 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
125 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
126 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
127 inline CreateTapeWithBarcodeRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
128 inline CreateTapeWithBarcodeRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
129 inline CreateTapeWithBarcodeRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
131
133
137 inline bool GetWorm() const{ return m_worm; }
138 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
139 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
140 inline CreateTapeWithBarcodeRequest& WithWorm(bool value) { SetWorm(value); return *this;}
142
144
152 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
155 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
156 inline CreateTapeWithBarcodeRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
157 inline CreateTapeWithBarcodeRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
158 inline CreateTapeWithBarcodeRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
159 inline CreateTapeWithBarcodeRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
161 private:
162
163 Aws::String m_gatewayARN;
164 bool m_gatewayARNHasBeenSet = false;
165
166 long long m_tapeSizeInBytes;
167 bool m_tapeSizeInBytesHasBeenSet = false;
168
169 Aws::String m_tapeBarcode;
170 bool m_tapeBarcodeHasBeenSet = false;
171
172 bool m_kMSEncrypted;
173 bool m_kMSEncryptedHasBeenSet = false;
174
175 Aws::String m_kMSKey;
176 bool m_kMSKeyHasBeenSet = false;
177
178 Aws::String m_poolId;
179 bool m_poolIdHasBeenSet = false;
180
181 bool m_worm;
182 bool m_wormHasBeenSet = false;
183
184 Aws::Vector<Tag> m_tags;
185 bool m_tagsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace StorageGateway
190} // namespace Aws
CreateTapeWithBarcodeRequest & WithTapeSizeInBytes(long long value)
CreateTapeWithBarcodeRequest & WithKMSKey(const char *value)
CreateTapeWithBarcodeRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTapeWithBarcodeRequest & WithKMSKey(Aws::String &&value)
CreateTapeWithBarcodeRequest & WithGatewayARN(Aws::String &&value)
CreateTapeWithBarcodeRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTapeWithBarcodeRequest & WithGatewayARN(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithKMSKey(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithPoolId(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithPoolId(const char *value)
CreateTapeWithBarcodeRequest & AddTags(const Tag &value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
CreateTapeWithBarcodeRequest & WithPoolId(Aws::String &&value)
CreateTapeWithBarcodeRequest & WithGatewayARN(const char *value)
CreateTapeWithBarcodeRequest & WithTapeBarcode(const char *value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTapeWithBarcodeRequest & WithTapeBarcode(const Aws::String &value)
CreateTapeWithBarcodeRequest & WithTapeBarcode(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