AWS SDK for C++  0.12.9
AWS SDK for C++
CreateTapesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace StorageGateway
23 {
24 namespace Model
25 {
26 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
43  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
44 
50  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
51 
57  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
58 
64  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
65 
71  inline CreateTapesRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
72 
78  inline CreateTapesRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
79 
85  inline CreateTapesRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
86 
91  inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
92 
97  inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
98 
103  inline CreateTapesRequest& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
104 
111  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
112 
119  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
120 
127  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
128 
135  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
136 
143  inline CreateTapesRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
144 
151  inline CreateTapesRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
152 
159  inline CreateTapesRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
160 
164  inline long GetNumTapesToCreate() const{ return m_numTapesToCreate; }
165 
169  inline void SetNumTapesToCreate(long value) { m_numTapesToCreateHasBeenSet = true; m_numTapesToCreate = value; }
170 
174  inline CreateTapesRequest& WithNumTapesToCreate(long value) { SetNumTapesToCreate(value); return *this;}
175 
182  inline const Aws::String& GetTapeBarcodePrefix() const{ return m_tapeBarcodePrefix; }
183 
190  inline void SetTapeBarcodePrefix(const Aws::String& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = value; }
191 
198  inline void SetTapeBarcodePrefix(Aws::String&& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = value; }
199 
206  inline void SetTapeBarcodePrefix(const char* value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix.assign(value); }
207 
214  inline CreateTapesRequest& WithTapeBarcodePrefix(const Aws::String& value) { SetTapeBarcodePrefix(value); return *this;}
215 
222  inline CreateTapesRequest& WithTapeBarcodePrefix(Aws::String&& value) { SetTapeBarcodePrefix(value); return *this;}
223 
230  inline CreateTapesRequest& WithTapeBarcodePrefix(const char* value) { SetTapeBarcodePrefix(value); return *this;}
231 
232  private:
233  Aws::String m_gatewayARN;
234  bool m_gatewayARNHasBeenSet;
235  long long m_tapeSizeInBytes;
236  bool m_tapeSizeInBytesHasBeenSet;
237  Aws::String m_clientToken;
238  bool m_clientTokenHasBeenSet;
239  long m_numTapesToCreate;
240  bool m_numTapesToCreateHasBeenSet;
241  Aws::String m_tapeBarcodePrefix;
242  bool m_tapeBarcodePrefixHasBeenSet;
243  };
244 
245 } // namespace Model
246 } // namespace StorageGateway
247 } // namespace Aws
CreateTapesRequest & WithClientToken(const char *value)
void SetTapeBarcodePrefix(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
CreateTapesRequest & WithNumTapesToCreate(long value)
CreateTapesRequest & WithGatewayARN(const Aws::String &value)
CreateTapesRequest & WithTapeBarcodePrefix(Aws::String &&value)
CreateTapesRequest & WithTapeSizeInBytes(long long value)
CreateTapesRequest & WithGatewayARN(Aws::String &&value)
CreateTapesRequest & WithClientToken(const Aws::String &value)
CreateTapesRequest & WithTapeBarcodePrefix(const Aws::String &value)
void SetGatewayARN(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTapesRequest & WithClientToken(Aws::String &&value)
CreateTapesRequest & WithGatewayARN(const char *value)
#define AWS_STORAGEGATEWAY_API
CreateTapesRequest & WithTapeBarcodePrefix(const char *value)
JSON (JavaScript Object Notation).