AWS SDK for C++  0.14.3
AWS SDK for C++
Tape.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace StorageGateway
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Tape();
40  Tape(const Aws::Utils::Json::JsonValue& jsonValue);
41  Tape& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
48 
52  inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
53 
57  inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
58 
62  inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
63 
67  inline Tape& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
68 
72  inline Tape& WithTapeARN(Aws::String&& value) { SetTapeARN(value); return *this;}
73 
77  inline Tape& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
78 
82  inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; }
83 
87  inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
88 
92  inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
93 
97  inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); }
98 
102  inline Tape& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
103 
107  inline Tape& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(value); return *this;}
108 
112  inline Tape& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;}
113 
117  inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
118 
122  inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
123 
127  inline Tape& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
128 
132  inline const Aws::String& GetTapeStatus() const{ return m_tapeStatus; }
133 
137  inline void SetTapeStatus(const Aws::String& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = value; }
138 
142  inline void SetTapeStatus(Aws::String&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = value; }
143 
147  inline void SetTapeStatus(const char* value) { m_tapeStatusHasBeenSet = true; m_tapeStatus.assign(value); }
148 
152  inline Tape& WithTapeStatus(const Aws::String& value) { SetTapeStatus(value); return *this;}
153 
157  inline Tape& WithTapeStatus(Aws::String&& value) { SetTapeStatus(value); return *this;}
158 
162  inline Tape& WithTapeStatus(const char* value) { SetTapeStatus(value); return *this;}
163 
168  inline const Aws::String& GetVTLDevice() const{ return m_vTLDevice; }
169 
174  inline void SetVTLDevice(const Aws::String& value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice = value; }
175 
180  inline void SetVTLDevice(Aws::String&& value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice = value; }
181 
186  inline void SetVTLDevice(const char* value) { m_vTLDeviceHasBeenSet = true; m_vTLDevice.assign(value); }
187 
192  inline Tape& WithVTLDevice(const Aws::String& value) { SetVTLDevice(value); return *this;}
193 
198  inline Tape& WithVTLDevice(Aws::String&& value) { SetVTLDevice(value); return *this;}
199 
204  inline Tape& WithVTLDevice(const char* value) { SetVTLDevice(value); return *this;}
205 
211  inline double GetProgress() const{ return m_progress; }
212 
218  inline void SetProgress(double value) { m_progressHasBeenSet = true; m_progress = value; }
219 
225  inline Tape& WithProgress(double value) { SetProgress(value); return *this;}
226 
227  private:
228  Aws::String m_tapeARN;
229  bool m_tapeARNHasBeenSet;
230  Aws::String m_tapeBarcode;
231  bool m_tapeBarcodeHasBeenSet;
232  long long m_tapeSizeInBytes;
233  bool m_tapeSizeInBytesHasBeenSet;
234  Aws::String m_tapeStatus;
235  bool m_tapeStatusHasBeenSet;
236  Aws::String m_vTLDevice;
237  bool m_vTLDeviceHasBeenSet;
238  double m_progress;
239  bool m_progressHasBeenSet;
240  };
241 
242 } // namespace Model
243 } // namespace StorageGateway
244 } // namespace Aws
Tape & WithTapeARN(Aws::String &&value)
Definition: Tape.h:72
Tape & WithTapeBarcode(const char *value)
Definition: Tape.h:112
void SetTapeBarcode(const Aws::String &value)
Definition: Tape.h:87
const Aws::String & GetVTLDevice() const
Definition: Tape.h:168
void SetTapeARN(Aws::String &&value)
Definition: Tape.h:57
Tape & WithTapeStatus(const char *value)
Definition: Tape.h:162
void SetTapeARN(const char *value)
Definition: Tape.h:62
void SetVTLDevice(Aws::String &&value)
Definition: Tape.h:180
void SetTapeARN(const Aws::String &value)
Definition: Tape.h:52
long long GetTapeSizeInBytes() const
Definition: Tape.h:117
const Aws::String & GetTapeBarcode() const
Definition: Tape.h:82
double GetProgress() const
Definition: Tape.h:211
Tape & WithTapeStatus(Aws::String &&value)
Definition: Tape.h:157
Tape & WithProgress(double value)
Definition: Tape.h:225
void SetVTLDevice(const char *value)
Definition: Tape.h:186
const Aws::String & GetTapeARN() const
Definition: Tape.h:47
Tape & WithVTLDevice(const Aws::String &value)
Definition: Tape.h:192
void SetVTLDevice(const Aws::String &value)
Definition: Tape.h:174
const Aws::String & GetTapeStatus() const
Definition: Tape.h:132
void SetTapeStatus(const Aws::String &value)
Definition: Tape.h:137
Tape & WithTapeSizeInBytes(long long value)
Definition: Tape.h:127
Tape & WithVTLDevice(Aws::String &&value)
Definition: Tape.h:198
Tape & WithTapeARN(const Aws::String &value)
Definition: Tape.h:67
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetProgress(double value)
Definition: Tape.h:218
Tape & WithTapeBarcode(const Aws::String &value)
Definition: Tape.h:102
Tape & WithTapeStatus(const Aws::String &value)
Definition: Tape.h:152
#define AWS_STORAGEGATEWAY_API
void SetTapeStatus(Aws::String &&value)
Definition: Tape.h:142
Tape & WithTapeBarcode(Aws::String &&value)
Definition: Tape.h:107
void SetTapeSizeInBytes(long long value)
Definition: Tape.h:122
Tape & WithVTLDevice(const char *value)
Definition: Tape.h:204
void SetTapeBarcode(const char *value)
Definition: Tape.h:97
Tape & WithTapeARN(const char *value)
Definition: Tape.h:77
void SetTapeBarcode(Aws::String &&value)
Definition: Tape.h:92
JSON (JavaScript Object Notation).
void SetTapeStatus(const char *value)
Definition: Tape.h:147