AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 const StorageUnit& GetStorageUnit() const{ return m_storageUnit; }
60 inline bool StorageUnitHasBeenSet() const { return m_storageUnitHasBeenSet; }
61 inline void SetStorageUnit(const StorageUnit& value) { m_storageUnitHasBeenSet = true; m_storageUnit = value; }
62 inline void SetStorageUnit(StorageUnit&& value) { m_storageUnitHasBeenSet = true; m_storageUnit = std::move(value); }
63 inline S3OnDeviceServiceConfiguration& WithStorageUnit(const StorageUnit& value) { SetStorageUnit(value); return *this;}
64 inline S3OnDeviceServiceConfiguration& WithStorageUnit(StorageUnit&& value) { SetStorageUnit(std::move(value)); return *this;}
66
68
73 inline int GetServiceSize() const{ return m_serviceSize; }
74 inline bool ServiceSizeHasBeenSet() const { return m_serviceSizeHasBeenSet; }
75 inline void SetServiceSize(int value) { m_serviceSizeHasBeenSet = true; m_serviceSize = value; }
76 inline S3OnDeviceServiceConfiguration& WithServiceSize(int value) { SetServiceSize(value); return *this;}
78
80
87 inline int GetFaultTolerance() const{ return m_faultTolerance; }
88 inline bool FaultToleranceHasBeenSet() const { return m_faultToleranceHasBeenSet; }
89 inline void SetFaultTolerance(int value) { m_faultToleranceHasBeenSet = true; m_faultTolerance = value; }
90 inline S3OnDeviceServiceConfiguration& WithFaultTolerance(int value) { SetFaultTolerance(value); return *this;}
92 private:
93
94 double m_storageLimit;
95 bool m_storageLimitHasBeenSet = false;
96
97 StorageUnit m_storageUnit;
98 bool m_storageUnitHasBeenSet = false;
99
100 int m_serviceSize;
101 bool m_serviceSizeHasBeenSet = false;
102
103 int m_faultTolerance;
104 bool m_faultToleranceHasBeenSet = false;
105 };
106
107} // namespace Model
108} // namespace Snowball
109} // namespace Aws
S3OnDeviceServiceConfiguration & WithStorageUnit(StorageUnit &&value)
S3OnDeviceServiceConfiguration & WithStorageUnit(const 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