AWS SDK for C++

AWS SDK for C++ Version 1.11.761

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