AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#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 Snowball
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SNOWBALL_API S3OnDeviceServiceConfiguration() = default;
38 AWS_SNOWBALL_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
49 inline double GetStorageLimit() const { return m_storageLimit; }
50 inline bool StorageLimitHasBeenSet() const { return m_storageLimitHasBeenSet; }
51 inline void SetStorageLimit(double value) { m_storageLimitHasBeenSet = true; m_storageLimit = value; }
52 inline S3OnDeviceServiceConfiguration& WithStorageLimit(double value) { SetStorageLimit(value); return *this;}
54
56
59 inline StorageUnit GetStorageUnit() const { return m_storageUnit; }
60 inline bool StorageUnitHasBeenSet() const { return m_storageUnitHasBeenSet; }
61 inline void SetStorageUnit(StorageUnit value) { m_storageUnitHasBeenSet = true; m_storageUnit = value; }
64
66
71 inline int GetServiceSize() const { return m_serviceSize; }
72 inline bool ServiceSizeHasBeenSet() const { return m_serviceSizeHasBeenSet; }
73 inline void SetServiceSize(int value) { m_serviceSizeHasBeenSet = true; m_serviceSize = value; }
74 inline S3OnDeviceServiceConfiguration& WithServiceSize(int value) { SetServiceSize(value); return *this;}
76
78
85 inline int GetFaultTolerance() const { return m_faultTolerance; }
86 inline bool FaultToleranceHasBeenSet() const { return m_faultToleranceHasBeenSet; }
87 inline void SetFaultTolerance(int value) { m_faultToleranceHasBeenSet = true; m_faultTolerance = value; }
88 inline S3OnDeviceServiceConfiguration& WithFaultTolerance(int value) { SetFaultTolerance(value); return *this;}
90 private:
91
92 double m_storageLimit{0.0};
93 bool m_storageLimitHasBeenSet = false;
94
95 StorageUnit m_storageUnit{StorageUnit::NOT_SET};
96 bool m_storageUnitHasBeenSet = false;
97
98 int m_serviceSize{0};
99 bool m_serviceSizeHasBeenSet = false;
100
101 int m_faultTolerance{0};
102 bool m_faultToleranceHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace Snowball
107} // 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