AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
QueueSnapshotCapacityUsage.h
1
6#pragma once
7#include <aws/batch/Batch_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Batch {
20namespace Model {
21
29 public:
30 AWS_BATCH_API QueueSnapshotCapacityUsage() = default;
33 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
41 inline const Aws::String& GetCapacityUnit() const { return m_capacityUnit; }
42 inline bool CapacityUnitHasBeenSet() const { return m_capacityUnitHasBeenSet; }
43 template <typename CapacityUnitT = Aws::String>
44 void SetCapacityUnit(CapacityUnitT&& value) {
45 m_capacityUnitHasBeenSet = true;
46 m_capacityUnit = std::forward<CapacityUnitT>(value);
47 }
48 template <typename CapacityUnitT = Aws::String>
50 SetCapacityUnit(std::forward<CapacityUnitT>(value));
51 return *this;
52 }
54
56
60 inline double GetQuantity() const { return m_quantity; }
61 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
62 inline void SetQuantity(double value) {
63 m_quantityHasBeenSet = true;
64 m_quantity = value;
65 }
67 SetQuantity(value);
68 return *this;
69 }
71 private:
72 Aws::String m_capacityUnit;
73
74 double m_quantity{0.0};
75 bool m_capacityUnitHasBeenSet = false;
76 bool m_quantityHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Batch
81} // namespace Aws
QueueSnapshotCapacityUsage & WithQuantity(double value)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BATCH_API QueueSnapshotCapacityUsage(Aws::Utils::Json::JsonView jsonValue)
QueueSnapshotCapacityUsage & WithCapacityUnit(CapacityUnitT &&value)
AWS_BATCH_API QueueSnapshotCapacityUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API QueueSnapshotCapacityUsage()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue