AWS SDK for C++

AWS SDK for C++ Version 1.11.773

Loading...
Searching...
No Matches
QuotaShareCapacityUsage.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 QuotaShareCapacityUsage() = default;
33 AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetCapacityUnit() const { return m_capacityUnit; }
40 inline bool CapacityUnitHasBeenSet() const { return m_capacityUnitHasBeenSet; }
41 template <typename CapacityUnitT = Aws::String>
42 void SetCapacityUnit(CapacityUnitT&& value) {
43 m_capacityUnitHasBeenSet = true;
44 m_capacityUnit = std::forward<CapacityUnitT>(value);
45 }
46 template <typename CapacityUnitT = Aws::String>
47 QuotaShareCapacityUsage& WithCapacityUnit(CapacityUnitT&& value) {
48 SetCapacityUnit(std::forward<CapacityUnitT>(value));
49 return *this;
50 }
52
54
57 inline double GetQuantity() const { return m_quantity; }
58 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
59 inline void SetQuantity(double value) {
60 m_quantityHasBeenSet = true;
61 m_quantity = value;
62 }
63 inline QuotaShareCapacityUsage& WithQuantity(double value) {
64 SetQuantity(value);
65 return *this;
66 }
68 private:
69 Aws::String m_capacityUnit;
70
71 double m_quantity{0.0};
72 bool m_capacityUnitHasBeenSet = false;
73 bool m_quantityHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace Batch
78} // namespace Aws
QuotaShareCapacityUsage & WithQuantity(double value)
AWS_BATCH_API QuotaShareCapacityUsage(Aws::Utils::Json::JsonView jsonValue)
AWS_BATCH_API Aws::Utils::Json::JsonValue Jsonize() const
QuotaShareCapacityUsage & WithCapacityUnit(CapacityUnitT &&value)
AWS_BATCH_API QuotaShareCapacityUsage()=default
AWS_BATCH_API QuotaShareCapacityUsage & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue