AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
S3OnDeviceServiceConfiguration.h
1
6#pragma once
7#include <aws/snowball/Snowball_EXPORTS.h>
8#include <aws/snowball/model/StorageUnit.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Snowball {
20namespace Model {
21
29 public:
30 AWS_SNOWBALL_API S3OnDeviceServiceConfiguration() = default;
33 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
43 inline double GetStorageLimit() const { return m_storageLimit; }
44 inline bool StorageLimitHasBeenSet() const { return m_storageLimitHasBeenSet; }
45 inline void SetStorageLimit(double value) {
46 m_storageLimitHasBeenSet = true;
47 m_storageLimit = value;
48 }
50 SetStorageLimit(value);
51 return *this;
52 }
54
56
59 inline StorageUnit GetStorageUnit() const { return m_storageUnit; }
60 inline bool StorageUnitHasBeenSet() const { return m_storageUnitHasBeenSet; }
61 inline void SetStorageUnit(StorageUnit value) {
62 m_storageUnitHasBeenSet = true;
63 m_storageUnit = value;
64 }
66 SetStorageUnit(value);
67 return *this;
68 }
70
72
77 inline int GetServiceSize() const { return m_serviceSize; }
78 inline bool ServiceSizeHasBeenSet() const { return m_serviceSizeHasBeenSet; }
79 inline void SetServiceSize(int value) {
80 m_serviceSizeHasBeenSet = true;
81 m_serviceSize = value;
82 }
84 SetServiceSize(value);
85 return *this;
86 }
88
90
97 inline int GetFaultTolerance() const { return m_faultTolerance; }
98 inline bool FaultToleranceHasBeenSet() const { return m_faultToleranceHasBeenSet; }
99 inline void SetFaultTolerance(int value) {
100 m_faultToleranceHasBeenSet = true;
101 m_faultTolerance = value;
102 }
104 SetFaultTolerance(value);
105 return *this;
106 }
108 private:
109 double m_storageLimit{0.0};
110
111 StorageUnit m_storageUnit{StorageUnit::NOT_SET};
112
113 int m_serviceSize{0};
114
115 int m_faultTolerance{0};
116 bool m_storageLimitHasBeenSet = false;
117 bool m_storageUnitHasBeenSet = false;
118 bool m_serviceSizeHasBeenSet = false;
119 bool m_faultToleranceHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace Snowball
124} // namespace Aws
AWS_SNOWBALL_API S3OnDeviceServiceConfiguration()=default
S3OnDeviceServiceConfiguration & WithStorageUnit(StorageUnit value)
S3OnDeviceServiceConfiguration & WithFaultTolerance(int value)
S3OnDeviceServiceConfiguration & WithStorageLimit(double value)
AWS_SNOWBALL_API S3OnDeviceServiceConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWBALL_API S3OnDeviceServiceConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const
S3OnDeviceServiceConfiguration & WithServiceSize(int value)
Aws::Utils::Json::JsonValue JsonValue