AWS SDK for C++

AWS SDK for C++ Version 1.11.829

Loading...
Searching...
No Matches
QuoteCapacity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/outposts/Outposts_EXPORTS.h>
9#include <aws/outposts/model/QuoteCapacityType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Outposts {
21namespace Model {
22
30 public:
31 AWS_OUTPOSTS_API QuoteCapacity() = default;
32 AWS_OUTPOSTS_API QuoteCapacity(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline QuoteCapacityType GetQuoteCapacityType() const { return m_quoteCapacityType; }
42 inline bool QuoteCapacityTypeHasBeenSet() const { return m_quoteCapacityTypeHasBeenSet; }
44 m_quoteCapacityTypeHasBeenSet = true;
45 m_quoteCapacityType = value;
46 }
49 return *this;
50 }
52
54
59 inline const Aws::String& GetUnit() const { return m_unit; }
60 inline bool UnitHasBeenSet() const { return m_unitHasBeenSet; }
61 template <typename UnitT = Aws::String>
62 void SetUnit(UnitT&& value) {
63 m_unitHasBeenSet = true;
64 m_unit = std::forward<UnitT>(value);
65 }
66 template <typename UnitT = Aws::String>
67 QuoteCapacity& WithUnit(UnitT&& value) {
68 SetUnit(std::forward<UnitT>(value));
69 return *this;
70 }
72
74
79 inline double GetQuantity() const { return m_quantity; }
80 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
81 inline void SetQuantity(double value) {
82 m_quantityHasBeenSet = true;
83 m_quantity = value;
84 }
85 inline QuoteCapacity& WithQuantity(double value) {
86 SetQuantity(value);
87 return *this;
88 }
90 private:
92
93 Aws::String m_unit;
94
95 double m_quantity{0.0};
96 bool m_quoteCapacityTypeHasBeenSet = false;
97 bool m_unitHasBeenSet = false;
98 bool m_quantityHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace Outposts
103} // namespace Aws
QuoteCapacityType GetQuoteCapacityType() const
const Aws::String & GetUnit() const
QuoteCapacity & WithQuoteCapacityType(QuoteCapacityType value)
QuoteCapacity & WithQuantity(double value)
QuoteCapacity & WithUnit(UnitT &&value)
void SetQuoteCapacityType(QuoteCapacityType value)
AWS_OUTPOSTS_API QuoteCapacity(Aws::Utils::Json::JsonView jsonValue)
AWS_OUTPOSTS_API QuoteCapacity()=default
AWS_OUTPOSTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OUTPOSTS_API QuoteCapacity & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue