AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TapeBarcodePrefixT = Aws::String>
54 void SetTapeBarcodePrefix(TapeBarcodePrefixT&& value) { m_tapeBarcodePrefixHasBeenSet = true; m_tapeBarcodePrefix = std::forward<TapeBarcodePrefixT>(value); }
55 template<typename TapeBarcodePrefixT = Aws::String>
56 AutomaticTapeCreationRule& WithTapeBarcodePrefix(TapeBarcodePrefixT&& value) { SetTapeBarcodePrefix(std::forward<TapeBarcodePrefixT>(value)); return *this;}
58
60
67 inline const Aws::String& GetPoolId() const { return m_poolId; }
68 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
69 template<typename PoolIdT = Aws::String>
70 void SetPoolId(PoolIdT&& value) { m_poolIdHasBeenSet = true; m_poolId = std::forward<PoolIdT>(value); }
71 template<typename PoolIdT = Aws::String>
72 AutomaticTapeCreationRule& WithPoolId(PoolIdT&& value) { SetPoolId(std::forward<PoolIdT>(value)); return *this;}
74
76
79 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
80 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
81 inline void SetTapeSizeInBytes(long long value) { m_tapeSizeInBytesHasBeenSet = true; m_tapeSizeInBytes = value; }
82 inline AutomaticTapeCreationRule& WithTapeSizeInBytes(long long value) { SetTapeSizeInBytes(value); return *this;}
84
86
95 inline int GetMinimumNumTapes() const { return m_minimumNumTapes; }
96 inline bool MinimumNumTapesHasBeenSet() const { return m_minimumNumTapesHasBeenSet; }
97 inline void SetMinimumNumTapes(int value) { m_minimumNumTapesHasBeenSet = true; m_minimumNumTapes = value; }
98 inline AutomaticTapeCreationRule& WithMinimumNumTapes(int value) { SetMinimumNumTapes(value); return *this;}
100
102
107 inline bool GetWorm() const { return m_worm; }
108 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
109 inline void SetWorm(bool value) { m_wormHasBeenSet = true; m_worm = value; }
110 inline AutomaticTapeCreationRule& WithWorm(bool value) { SetWorm(value); return *this;}
112 private:
113
114 Aws::String m_tapeBarcodePrefix;
115 bool m_tapeBarcodePrefixHasBeenSet = false;
116
117 Aws::String m_poolId;
118 bool m_poolIdHasBeenSet = false;
119
120 long long m_tapeSizeInBytes{0};
121 bool m_tapeSizeInBytesHasBeenSet = false;
122
123 int m_minimumNumTapes{0};
124 bool m_minimumNumTapesHasBeenSet = false;
125
126 bool m_worm{false};
127 bool m_wormHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace StorageGateway
132} // namespace Aws
AutomaticTapeCreationRule & WithTapeSizeInBytes(long long value)
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule()=default
AutomaticTapeCreationRule & WithTapeBarcodePrefix(TapeBarcodePrefixT &&value)
AutomaticTapeCreationRule & WithPoolId(PoolIdT &&value)
AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule(Aws::Utils::Json::JsonView jsonValue)
AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue