AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
AutomaticTapeCreationRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGateway_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace StorageGateway {
20namespace Model {
21
32 public:
33 AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule() = default;
34 AWS_STORAGEGATEWAY_API AutomaticTapeCreationRule(Aws::Utils::Json::JsonView jsonValue);
36 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
45 inline const Aws::String& GetTapeBarcodePrefix() const { return m_tapeBarcodePrefix; }
46 inline bool TapeBarcodePrefixHasBeenSet() const { return m_tapeBarcodePrefixHasBeenSet; }
47 template <typename TapeBarcodePrefixT = Aws::String>
48 void SetTapeBarcodePrefix(TapeBarcodePrefixT&& value) {
49 m_tapeBarcodePrefixHasBeenSet = true;
50 m_tapeBarcodePrefix = std::forward<TapeBarcodePrefixT>(value);
51 }
52 template <typename TapeBarcodePrefixT = Aws::String>
53 AutomaticTapeCreationRule& WithTapeBarcodePrefix(TapeBarcodePrefixT&& value) {
54 SetTapeBarcodePrefix(std::forward<TapeBarcodePrefixT>(value));
55 return *this;
56 }
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) {
71 m_poolIdHasBeenSet = true;
72 m_poolId = std::forward<PoolIdT>(value);
73 }
74 template <typename PoolIdT = Aws::String>
76 SetPoolId(std::forward<PoolIdT>(value));
77 return *this;
78 }
80
82
85 inline long long GetTapeSizeInBytes() const { return m_tapeSizeInBytes; }
86 inline bool TapeSizeInBytesHasBeenSet() const { return m_tapeSizeInBytesHasBeenSet; }
87 inline void SetTapeSizeInBytes(long long value) {
88 m_tapeSizeInBytesHasBeenSet = true;
89 m_tapeSizeInBytes = value;
90 }
92 SetTapeSizeInBytes(value);
93 return *this;
94 }
96
98
107 inline int GetMinimumNumTapes() const { return m_minimumNumTapes; }
108 inline bool MinimumNumTapesHasBeenSet() const { return m_minimumNumTapesHasBeenSet; }
109 inline void SetMinimumNumTapes(int value) {
110 m_minimumNumTapesHasBeenSet = true;
111 m_minimumNumTapes = value;
112 }
114 SetMinimumNumTapes(value);
115 return *this;
116 }
118
120
125 inline bool GetWorm() const { return m_worm; }
126 inline bool WormHasBeenSet() const { return m_wormHasBeenSet; }
127 inline void SetWorm(bool value) {
128 m_wormHasBeenSet = true;
129 m_worm = value;
130 }
132 SetWorm(value);
133 return *this;
134 }
136 private:
137 Aws::String m_tapeBarcodePrefix;
138
139 Aws::String m_poolId;
140
141 long long m_tapeSizeInBytes{0};
142
143 int m_minimumNumTapes{0};
144
145 bool m_worm{false};
146 bool m_tapeBarcodePrefixHasBeenSet = false;
147 bool m_poolIdHasBeenSet = false;
148 bool m_tapeSizeInBytesHasBeenSet = false;
149 bool m_minimumNumTapesHasBeenSet = false;
150 bool m_wormHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace StorageGateway
155} // 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