AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutomaticTapeCreationRule.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace StorageGateway
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule();
39 AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule(Aws::Utils::Json::JsonView jsonValue);
41 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
51 inline const Aws::String& GetTapeBarcodePrefix() const{ return m_tapeBarcodePrefix; }
52 inline bool TapeBarcodePrefixHasBeenSet() const { return m_tapeBarcodePrefixHasBeenSet; }
53 inline void SetTapeBarcodePrefix(const Aws::String& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = value; }
54 inline void SetTapeBarcodePrefix(Aws::String&& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = std::move(value); }
55 inline void SetTapeBarcodePrefix(const char* value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix.assign(value); }
57 inline AutomaticTapeCreationRule& WithTapeBarcodePrefix(Aws::String&& value) { SetTapeBarcodePrefix(std::move(value)); return *this;}
58 inline AutomaticTapeCreationRule& WithTapeBarcodePrefix(const char* value) { SetTapeBarcodePrefix(value); return *this;}
60
62
69 inline const Aws::String& GetPoolId() const{ return m_poolId; }
70 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
71 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
72 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
73 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
74 inline AutomaticTapeCreationRule& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
75 inline AutomaticTapeCreationRule& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
76 inline AutomaticTapeCreationRule& WithPoolId(const char* value) { SetPoolId(value); return *this;}
78
80
83 inline long long GetTapeSizeInBytes() const{ return m_tapeSizeInBytes; }
84 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
85 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
86 inline AutomaticTapeCreationRule& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
88
90
99 inline int GetMinimumNumTapes() const{ return m_minimumNumTapes; }
100 inline bool MinimumNumTapesHasBeenSet() const { return m_minimumNumTapesHasBeenSet; }
101 inline void SetMinimumNumTapes(int value) { m_minimumNumTapesHasBeenSet = true; m_minimumNumTapes = value; }
102 inline AutomaticTapeCreationRule& WithMinimumNumTapes(int value) { SetMinimumNumTapes(value); return *this;}
104
106
111 inline bool GetWorm() const{ return m_worm; }
112 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
113 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
114 inline AutomaticTapeCreationRule& WithWorm(bool value) { SetWorm(value); return *this;}
116 private:
117
118 Aws::String m_tapeBarcodePrefix;
119 bool m_tapeBarcodePrefixHasBeenSet = false;
120
121 Aws::String m_poolId;
122 bool m_poolIdHasBeenSet = false;
123
124 long long m_tapeSizeInBytes;
125 bool m_tapeSizeInBytesHasBeenSet = false;
126
127 int m_minimumNumTapes;
128 bool m_minimumNumTapesHasBeenSet = false;
129
130 bool m_worm;
131 bool m_wormHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace StorageGateway
136} // namespace Aws
AutomaticTapeCreationRule & WithTapeSizeInBytes(long long value)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AutomaticTapeCreationRule & WithPoolId(const Aws::String &value)
AutomaticTapeCreationRule & WithTapeBarcodePrefix(const Aws::String &value)
AutomaticTapeCreationRule & WithTapeBarcodePrefix(Aws::String &&value)
AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule(Aws::Utils::Json::JsonView jsonValue)
AutomaticTapeCreationRule & WithPoolId(const char *value)
AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AutomaticTapeCreationRule & WithPoolId(Aws::String &&value)
AutomaticTapeCreationRule & WithTapeBarcodePrefix(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue