AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GatewayARNT = Aws::String>
51 void SetGatewayARN(GatewayARNT&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::forward<GatewayARNT>(value); }
52 template<typename GatewayARNT = Aws::String>
53 CreateTapeWithBarcodeRequest& WithGatewayARN(GatewayARNT&& value) { SetGatewayARN(std::forward<GatewayARNT>(value)); return *this;}
55
57
61 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
62 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
63 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
64 inline CreateTapeWithBarcodeRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
66
68
73 inline const Aws::String& GetTapeBarcode() const { return m_tapeBarcode; }
74 inline bool TapeBarcodeHasBeenSet() const { return m_tapeBarcodeHasBeenSet; }
75 template<typename TapeBarcodeT = Aws::String>
76 void SetTapeBarcode(TapeBarcodeT&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = std::forward<TapeBarcodeT>(value); }
77 template<typename TapeBarcodeT = Aws::String>
78 CreateTapeWithBarcodeRequest& WithTapeBarcode(TapeBarcodeT&& value) { SetTapeBarcode(std::forward<TapeBarcodeT>(value)); return *this;}
80
82
87 inline bool GetKMSEncrypted() const { return m_kMSEncrypted; }
88 inline bool KMSEncryptedHasBeenSet() const { return m_kMSEncryptedHasBeenSet; }
89 inline void SetKMSEncrypted(bool value) { m_kMSEncryptedHasBeenSet = true; m_kMSEncrypted = value; }
90 inline CreateTapeWithBarcodeRequest& WithKMSEncrypted(bool value) { SetKMSEncrypted(value); return *this;}
92
94
100 inline const Aws::String& GetKMSKey() const { return m_kMSKey; }
101 inline bool KMSKeyHasBeenSet() const { return m_kMSKeyHasBeenSet; }
102 template<typename KMSKeyT = Aws::String>
103 void SetKMSKey(KMSKeyT&& value) { m_kMSKeyHasBeenSet = true; m_kMSKey = std::forward<KMSKeyT>(value); }
104 template<typename KMSKeyT = Aws::String>
105 CreateTapeWithBarcodeRequest& WithKMSKey(KMSKeyT&& value) { SetKMSKey(std::forward<KMSKeyT>(value)); return *this;}
107
109
116 inline const Aws::String& GetPoolId() const { return m_poolId; }
117 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
118 template<typename PoolIdT = Aws::String>
119 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
120 template<typename PoolIdT = Aws::String>
121 CreateTapeWithBarcodeRequest& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
123
125
129 inline bool GetWorm() const { return m_worm; }
130 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
131 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
132 inline CreateTapeWithBarcodeRequest& WithWorm(bool value) { SetWorm(value); return *this;}
134
136
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template<typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
148 template<typename TagsT = Aws::Vector<Tag>>
149 CreateTapeWithBarcodeRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
150 template<typename TagsT = Tag>
151 CreateTapeWithBarcodeRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
153 private:
154
155 Aws::String m_gatewayARN;
156 bool m_gatewayARNHasBeenSet = false;
157
158 long long m_tapeSizeInBytes{0};
159 bool m_tapeSizeInBytesHasBeenSet = false;
160
161 Aws::String m_tapeBarcode;
162 bool m_tapeBarcodeHasBeenSet = false;
163
164 bool m_kMSEncrypted{false};
165 bool m_kMSEncryptedHasBeenSet = false;
166
167 Aws::String m_kMSKey;
168 bool m_kMSKeyHasBeenSet = false;
169
170 Aws::String m_poolId;
171 bool m_poolIdHasBeenSet = false;
172
173 bool m_worm{false};
174 bool m_wormHasBeenSet = false;
175
176 Aws::Vector<Tag> m_tags;
177 bool m_tagsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace StorageGateway
182} // namespace Aws
CreateTapeWithBarcodeRequest & WithKMSKey(KMSKeyT &&value)
CreateTapeWithBarcodeRequest & WithTapeSizeInBytes(long long value)
CreateTapeWithBarcodeRequest & WithPoolId(PoolIdT &&value)
CreateTapeWithBarcodeRequest & WithTapeBarcode(TapeBarcodeT &&value)
AWS_STORAGEGATEWAY_API CreateTapeWithBarcodeRequest()=default
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTapeWithBarcodeRequest & WithGatewayARN(GatewayARNT &&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