AWS SDK for C++  0.14.3
AWS SDK for C++
TapeInfo.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  TapeInfo();
40  TapeInfo(const Aws::Utils::Json::JsonValue& jsonValue);
41  TapeInfo& 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 TapeInfo& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
68 
72  inline TapeInfo& WithTapeARN(Aws::String&& value) { SetTapeARN(value); return *this;}
73 
77  inline TapeInfo& 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 TapeInfo& WithTapeBarcode(const Aws::String& value) { SetTapeBarcode(value); return *this;}
103 
107  inline TapeInfo& WithTapeBarcode(Aws::String&& value) { SetTapeBarcode(value); return *this;}
108 
112  inline TapeInfo& 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 TapeInfo& 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 TapeInfo& WithTapeStatus(const Aws::String& value) { SetTapeStatus(value); return *this;}
153 
157  inline TapeInfo& WithTapeStatus(Aws::String&& value) { SetTapeStatus(value); return *this;}
158 
162  inline TapeInfo& WithTapeStatus(const char* value) { SetTapeStatus(value); return *this;}
163 
168  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
169 
174  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
175 
180  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
181 
186  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
187 
192  inline TapeInfo& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
193 
198  inline TapeInfo& WithGatewayARN(Aws::String&& value) { SetGatewayARN(value); return *this;}
199 
204  inline TapeInfo& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
205 
206  private:
207  Aws::String m_tapeARN;
208  bool m_tapeARNHasBeenSet;
209  Aws::String m_tapeBarcode;
210  bool m_tapeBarcodeHasBeenSet;
211  long long m_tapeSizeInBytes;
212  bool m_tapeSizeInBytesHasBeenSet;
213  Aws::String m_tapeStatus;
214  bool m_tapeStatusHasBeenSet;
215  Aws::String m_gatewayARN;
216  bool m_gatewayARNHasBeenSet;
217  };
218 
219 } // namespace Model
220 } // namespace StorageGateway
221 } // namespace Aws
TapeInfo & WithTapeSizeInBytes(long long value)
Definition: TapeInfo.h:127
const Aws::String & GetTapeBarcode() const
Definition: TapeInfo.h:82
TapeInfo & WithTapeBarcode(Aws::String &&value)
Definition: TapeInfo.h:107
void SetTapeStatus(const char *value)
Definition: TapeInfo.h:147
void SetTapeBarcode(const Aws::String &value)
Definition: TapeInfo.h:87
TapeInfo & WithTapeBarcode(const char *value)
Definition: TapeInfo.h:112
void SetTapeARN(const Aws::String &value)
Definition: TapeInfo.h:52
void SetGatewayARN(const char *value)
Definition: TapeInfo.h:186
const Aws::String & GetGatewayARN() const
Definition: TapeInfo.h:168
const Aws::String & GetTapeARN() const
Definition: TapeInfo.h:47
TapeInfo & WithTapeARN(const char *value)
Definition: TapeInfo.h:77
void SetTapeSizeInBytes(long long value)
Definition: TapeInfo.h:122
void SetTapeStatus(Aws::String &&value)
Definition: TapeInfo.h:142
TapeInfo & WithTapeBarcode(const Aws::String &value)
Definition: TapeInfo.h:102
void SetGatewayARN(Aws::String &&value)
Definition: TapeInfo.h:180
void SetTapeARN(const char *value)
Definition: TapeInfo.h:62
TapeInfo & WithGatewayARN(const Aws::String &value)
Definition: TapeInfo.h:192
TapeInfo & WithTapeStatus(Aws::String &&value)
Definition: TapeInfo.h:157
TapeInfo & WithTapeStatus(const char *value)
Definition: TapeInfo.h:162
TapeInfo & WithGatewayARN(Aws::String &&value)
Definition: TapeInfo.h:198
const Aws::String & GetTapeStatus() const
Definition: TapeInfo.h:132
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TapeInfo & WithTapeARN(Aws::String &&value)
Definition: TapeInfo.h:72
void SetTapeBarcode(const char *value)
Definition: TapeInfo.h:97
void SetTapeARN(Aws::String &&value)
Definition: TapeInfo.h:57
void SetTapeBarcode(Aws::String &&value)
Definition: TapeInfo.h:92
TapeInfo & WithTapeStatus(const Aws::String &value)
Definition: TapeInfo.h:152
#define AWS_STORAGEGATEWAY_API
long long GetTapeSizeInBytes() const
Definition: TapeInfo.h:117
TapeInfo & WithGatewayARN(const char *value)
Definition: TapeInfo.h:204
void SetGatewayARN(const Aws::String &value)
Definition: TapeInfo.h:174
JSON (JavaScript Object Notation).
TapeInfo & WithTapeARN(const Aws::String &value)
Definition: TapeInfo.h:67
void SetTapeStatus(const Aws::String &value)
Definition: TapeInfo.h:137