AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
ReasonCodeSummary.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/FindingReasonCode.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ComputeOptimizer {
20namespace Model {
21
28 public:
29 AWS_COMPUTEOPTIMIZER_API ReasonCodeSummary() = default;
30 AWS_COMPUTEOPTIMIZER_API ReasonCodeSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_COMPUTEOPTIMIZER_API ReasonCodeSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline FindingReasonCode GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 inline void SetName(FindingReasonCode value) {
41 m_nameHasBeenSet = true;
42 m_name = value;
43 }
45 SetName(value);
46 return *this;
47 }
49
51
54 inline double GetValue() const { return m_value; }
55 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
56 inline void SetValue(double value) {
57 m_valueHasBeenSet = true;
58 m_value = value;
59 }
60 inline ReasonCodeSummary& WithValue(double value) {
61 SetValue(value);
62 return *this;
63 }
65 private:
67
68 double m_value{0.0};
69 bool m_nameHasBeenSet = false;
70 bool m_valueHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ComputeOptimizer
75} // namespace Aws
ReasonCodeSummary & WithValue(double value)
AWS_COMPUTEOPTIMIZER_API ReasonCodeSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API ReasonCodeSummary()=default
ReasonCodeSummary & WithName(FindingReasonCode value)
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZER_API ReasonCodeSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)