AWS SDK for C++  1.9.106
AWS SDK for C++
AutomaticTapeCreationRule.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace StorageGateway
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
50  inline const Aws::String& GetTapeBarcodePrefix() const{ return m_tapeBarcodePrefix; }
51 
58  inline bool TapeBarcodePrefixHasBeenSet() const { return m_tapeBarcodePrefixHasBeenSet; }
59 
66  inline void SetTapeBarcodePrefix(const Aws::String& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = value; }
67 
74  inline void SetTapeBarcodePrefix(Aws::String&& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = std::move(value); }
75 
82  inline void SetTapeBarcodePrefix(const char* value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix.assign(value); }
83 
90  inline AutomaticTapeCreationRule& WithTapeBarcodePrefix(const Aws::String& value) { SetTapeBarcodePrefix(value); return *this;}
91 
98  inline AutomaticTapeCreationRule& WithTapeBarcodePrefix(Aws::String&& value) { SetTapeBarcodePrefix(std::move(value)); return *this;}
99 
106  inline AutomaticTapeCreationRule& WithTapeBarcodePrefix(const char* value) { SetTapeBarcodePrefix(value); return *this;}
107 
108 
117  inline const Aws::String& GetPoolId() const{ return m_poolId; }
118 
127  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
128 
137  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
138 
147  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
148 
157  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
158 
167  inline AutomaticTapeCreationRule& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
168 
177  inline AutomaticTapeCreationRule& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
178 
187  inline AutomaticTapeCreationRule& WithPoolId(const char* value) { SetPoolId(value); return *this;}
188 
189 
193  inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
194 
198  inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
199 
203  inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
204 
208  inline AutomaticTapeCreationRule& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
209 
210 
220  inline int GetMinimumNumTapes() const{ return m_minimumNumTapes; }
221 
231  inline bool MinimumNumTapesHasBeenSet() const { return m_minimumNumTapesHasBeenSet; }
232 
242  inline void SetMinimumNumTapes(int value) { m_minimumNumTapesHasBeenSet = true; m_minimumNumTapes = value; }
243 
253  inline AutomaticTapeCreationRule& WithMinimumNumTapes(int value) { SetMinimumNumTapes(value); return *this;}
254 
255 
261  inline bool GetWorm() const{ return m_worm; }
262 
268  inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
269 
275  inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
276 
282  inline AutomaticTapeCreationRule& WithWorm(bool value) { SetWorm(value); return *this;}
283 
284  private:
285 
286  Aws::String m_tapeBarcodePrefix;
287  bool m_tapeBarcodePrefixHasBeenSet;
288 
289  Aws::String m_poolId;
290  bool m_poolIdHasBeenSet;
291 
292  long long m_tapeSizeInBytes;
293  bool m_tapeSizeInBytesHasBeenSet;
294 
295  int m_minimumNumTapes;
296  bool m_minimumNumTapesHasBeenSet;
297 
298  bool m_worm;
299  bool m_wormHasBeenSet;
300  };
301 
302 } // namespace Model
303 } // namespace StorageGateway
304 } // namespace Aws
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetWorm
void SetWorm(bool value)
Definition: AutomaticTapeCreationRule.h:275
Aws::StorageGateway::Model::AutomaticTapeCreationRule::GetWorm
bool GetWorm() const
Definition: AutomaticTapeCreationRule.h:261
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithWorm
AutomaticTapeCreationRule & WithWorm(bool value)
Definition: AutomaticTapeCreationRule.h:282
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetPoolId
void SetPoolId(const char *value)
Definition: AutomaticTapeCreationRule.h:157
Aws::StorageGateway::Model::AutomaticTapeCreationRule::TapeBarcodePrefixHasBeenSet
bool TapeBarcodePrefixHasBeenSet() const
Definition: AutomaticTapeCreationRule.h:58
Aws::StorageGateway::Model::AutomaticTapeCreationRule::operator=
AutomaticTapeCreationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: AutomaticTapeCreationRule.h:147
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithMinimumNumTapes
AutomaticTapeCreationRule & WithMinimumNumTapes(int value)
Definition: AutomaticTapeCreationRule.h:253
Aws::StorageGateway::Model::AutomaticTapeCreationRule::AutomaticTapeCreationRule
AutomaticTapeCreationRule(Aws::Utils::Json::JsonView jsonValue)
Aws::StorageGateway::Model::AutomaticTapeCreationRule
Definition: AutomaticTapeCreationRule.h:36
Aws::StorageGateway::Model::AutomaticTapeCreationRule::GetTapeBarcodePrefix
const Aws::String & GetTapeBarcodePrefix() const
Definition: AutomaticTapeCreationRule.h:50
Aws::StorageGateway::Model::AutomaticTapeCreationRule::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: AutomaticTapeCreationRule.h:127
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetTapeBarcodePrefix
void SetTapeBarcodePrefix(const char *value)
Definition: AutomaticTapeCreationRule.h:82
Aws::StorageGateway::Model::AutomaticTapeCreationRule::GetMinimumNumTapes
int GetMinimumNumTapes() const
Definition: AutomaticTapeCreationRule.h:220
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithPoolId
AutomaticTapeCreationRule & WithPoolId(const char *value)
Definition: AutomaticTapeCreationRule.h:187
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithTapeBarcodePrefix
AutomaticTapeCreationRule & WithTapeBarcodePrefix(const Aws::String &value)
Definition: AutomaticTapeCreationRule.h:90
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetTapeBarcodePrefix
void SetTapeBarcodePrefix(const Aws::String &value)
Definition: AutomaticTapeCreationRule.h:66
Aws::StorageGateway::Model::AutomaticTapeCreationRule::MinimumNumTapesHasBeenSet
bool MinimumNumTapesHasBeenSet() const
Definition: AutomaticTapeCreationRule.h:231
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithTapeBarcodePrefix
AutomaticTapeCreationRule & WithTapeBarcodePrefix(const char *value)
Definition: AutomaticTapeCreationRule.h:106
Aws::StorageGateway::Model::AutomaticTapeCreationRule::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetTapeBarcodePrefix
void SetTapeBarcodePrefix(Aws::String &&value)
Definition: AutomaticTapeCreationRule.h:74
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithTapeBarcodePrefix
AutomaticTapeCreationRule & WithTapeBarcodePrefix(Aws::String &&value)
Definition: AutomaticTapeCreationRule.h:98
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithTapeSizeInBytes
AutomaticTapeCreationRule & WithTapeSizeInBytes(long long value)
Definition: AutomaticTapeCreationRule.h:208
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithPoolId
AutomaticTapeCreationRule & WithPoolId(const Aws::String &value)
Definition: AutomaticTapeCreationRule.h:167
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AutomaticTapeCreationRule::TapeSizeInBytesHasBeenSet
bool TapeSizeInBytesHasBeenSet() const
Definition: AutomaticTapeCreationRule.h:198
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetTapeSizeInBytes
void SetTapeSizeInBytes(long long value)
Definition: AutomaticTapeCreationRule.h:203
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetMinimumNumTapes
void SetMinimumNumTapes(int value)
Definition: AutomaticTapeCreationRule.h:242
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WormHasBeenSet
bool WormHasBeenSet() const
Definition: AutomaticTapeCreationRule.h:268
Aws::StorageGateway::Model::AutomaticTapeCreationRule::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: AutomaticTapeCreationRule.h:137
Aws::StorageGateway::Model::AutomaticTapeCreationRule::GetTapeSizeInBytes
long long GetTapeSizeInBytes() const
Definition: AutomaticTapeCreationRule.h:193
Aws::StorageGateway::Model::AutomaticTapeCreationRule::GetPoolId
const Aws::String & GetPoolId() const
Definition: AutomaticTapeCreationRule.h:117
Aws::StorageGateway::Model::AutomaticTapeCreationRule::AutomaticTapeCreationRule
AutomaticTapeCreationRule()
Aws::StorageGateway::Model::AutomaticTapeCreationRule::WithPoolId
AutomaticTapeCreationRule & WithPoolId(Aws::String &&value)
Definition: AutomaticTapeCreationRule.h:177