AWS SDK for C++  0.14.3
AWS SDK for C++
TapeArchive.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 Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace StorageGateway
30 {
31 namespace Model
32 {
33 
39  {
40  public:
41  TapeArchive();
42  TapeArchive(const Aws::Utils::Json::JsonValue& jsonValue);
43  TapeArchive& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
50 
54  inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
55 
59  inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
60 
64  inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
65 
69  inline TapeArchive& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
70 
74  inline TapeArchive& WithTapeARN(Aws::String&& value) { SetTapeARN(value); return *this;}
75 
79  inline TapeArchive& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
80 
84  inline const Aws::String& GetTapeBarcode() const{ return m_tapeBarcode; }
85 
89  inline void SetTapeBarcode(const Aws::String& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
90 
94  inline void SetTapeBarcode(Aws::String&& value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode = value; }
95 
99  inline void SetTapeBarcode(const char* value) { m_tapeBarcodeHasBeenSet = true; m_tapeBarcode.assign(value); }
100 
104  inline TapeArchive& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
105 
109  inline TapeArchive& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(value); return *this;}
110 
114  inline TapeArchive& WithTapeBarcode(const char* value) { SetTapeBarcode(value); return *this;}
115 
119  inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
120 
124  inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
125 
129  inline TapeArchive& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
130 
136  inline const Aws::Utils::DateTime& GetCompletionTime() const{ return m_completionTime; }
137 
143  inline void SetCompletionTime(const Aws::Utils::DateTime& value) { m_completionTimeHasBeenSet = true; m_completionTime = value; }
144 
150  inline void SetCompletionTime(Aws::Utils::DateTime&& value) { m_completionTimeHasBeenSet = true; m_completionTime = value; }
151 
157  inline TapeArchive& WithCompletionTime(const Aws::Utils::DateTime& value) { SetCompletionTime(value); return *this;}
158 
164  inline TapeArchive& WithCompletionTime(Aws::Utils::DateTime&& value) { SetCompletionTime(value); return *this;}
165 
171  inline const Aws::String& GetRetrievedTo() const{ return m_retrievedTo; }
172 
178  inline void SetRetrievedTo(const Aws::String& value) { m_retrievedToHasBeenSet = true; m_retrievedTo = value; }
179 
185  inline void SetRetrievedTo(Aws::String&& value) { m_retrievedToHasBeenSet = true; m_retrievedTo = value; }
186 
192  inline void SetRetrievedTo(const char* value) { m_retrievedToHasBeenSet = true; m_retrievedTo.assign(value); }
193 
199  inline TapeArchive& WithRetrievedTo(const Aws::String& value) { SetRetrievedTo(value); return *this;}
200 
206  inline TapeArchive& WithRetrievedTo(Aws::String&& value) { SetRetrievedTo(value); return *this;}
207 
213  inline TapeArchive& WithRetrievedTo(const char* value) { SetRetrievedTo(value); return *this;}
214 
218  inline const Aws::String& GetTapeStatus() const{ return m_tapeStatus; }
219 
223  inline void SetTapeStatus(const Aws::String& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = value; }
224 
228  inline void SetTapeStatus(Aws::String&& value) { m_tapeStatusHasBeenSet = true; m_tapeStatus = value; }
229 
233  inline void SetTapeStatus(const char* value) { m_tapeStatusHasBeenSet = true; m_tapeStatus.assign(value); }
234 
238  inline TapeArchive& WithTapeStatus(const Aws::String& value) { SetTapeStatus(value); return *this;}
239 
243  inline TapeArchive& WithTapeStatus(Aws::String&& value) { SetTapeStatus(value); return *this;}
244 
248  inline TapeArchive& WithTapeStatus(const char* value) { SetTapeStatus(value); return *this;}
249 
250  private:
251  Aws::String m_tapeARN;
252  bool m_tapeARNHasBeenSet;
253  Aws::String m_tapeBarcode;
254  bool m_tapeBarcodeHasBeenSet;
255  long long m_tapeSizeInBytes;
256  bool m_tapeSizeInBytesHasBeenSet;
257  Aws::Utils::DateTime m_completionTime;
258  bool m_completionTimeHasBeenSet;
259  Aws::String m_retrievedTo;
260  bool m_retrievedToHasBeenSet;
261  Aws::String m_tapeStatus;
262  bool m_tapeStatusHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace StorageGateway
267 } // namespace Aws
const Aws::String & GetTapeBarcode() const
Definition: TapeArchive.h:84
void SetCompletionTime(Aws::Utils::DateTime &&value)
Definition: TapeArchive.h:150
void SetTapeStatus(const char *value)
Definition: TapeArchive.h:233
TapeArchive & WithRetrievedTo(Aws::String &&value)
Definition: TapeArchive.h:206
TapeArchive & WithTapeSizeInBytes(long long value)
Definition: TapeArchive.h:129
TapeArchive & WithCompletionTime(Aws::Utils::DateTime &&value)
Definition: TapeArchive.h:164
TapeArchive & WithTapeStatus(const Aws::String &value)
Definition: TapeArchive.h:238
void SetTapeBarcode(Aws::String &&value)
Definition: TapeArchive.h:94
TapeArchive & WithTapeARN(Aws::String &&value)
Definition: TapeArchive.h:74
void SetTapeStatus(Aws::String &&value)
Definition: TapeArchive.h:228
void SetCompletionTime(const Aws::Utils::DateTime &value)
Definition: TapeArchive.h:143
TapeArchive & WithTapeARN(const char *value)
Definition: TapeArchive.h:79
const Aws::String & GetRetrievedTo() const
Definition: TapeArchive.h:171
void SetTapeBarcode(const Aws::String &value)
Definition: TapeArchive.h:89
const Aws::String & GetTapeStatus() const
Definition: TapeArchive.h:218
TapeArchive & WithTapeStatus(const char *value)
Definition: TapeArchive.h:248
TapeArchive & WithTapeBarcode(const Aws::String &value)
Definition: TapeArchive.h:104
const Aws::Utils::DateTime & GetCompletionTime() const
Definition: TapeArchive.h:136
void SetTapeARN(Aws::String &&value)
Definition: TapeArchive.h:59
void SetTapeARN(const char *value)
Definition: TapeArchive.h:64
TapeArchive & WithRetrievedTo(const char *value)
Definition: TapeArchive.h:213
void SetRetrievedTo(const char *value)
Definition: TapeArchive.h:192
TapeArchive & WithTapeStatus(Aws::String &&value)
Definition: TapeArchive.h:243
void SetRetrievedTo(const Aws::String &value)
Definition: TapeArchive.h:178
void SetTapeBarcode(const char *value)
Definition: TapeArchive.h:99
const Aws::String & GetTapeARN() const
Definition: TapeArchive.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TapeArchive & WithTapeBarcode(const char *value)
Definition: TapeArchive.h:114
void SetTapeARN(const Aws::String &value)
Definition: TapeArchive.h:54
TapeArchive & WithRetrievedTo(const Aws::String &value)
Definition: TapeArchive.h:199
void SetTapeStatus(const Aws::String &value)
Definition: TapeArchive.h:223
TapeArchive & WithTapeBarcode(Aws::String &&value)
Definition: TapeArchive.h:109
TapeArchive & WithCompletionTime(const Aws::Utils::DateTime &value)
Definition: TapeArchive.h:157
void SetRetrievedTo(Aws::String &&value)
Definition: TapeArchive.h:185
#define AWS_STORAGEGATEWAY_API
TapeArchive & WithTapeARN(const Aws::String &value)
Definition: TapeArchive.h:69
void SetTapeSizeInBytes(long long value)
Definition: TapeArchive.h:124
JSON (JavaScript Object Notation).