AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
DoubleCriteriaCondition.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/ComparisonOperator.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ComputeOptimizerAutomation {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API DoubleCriteriaCondition() = default;
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API DoubleCriteriaCondition(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API DoubleCriteriaCondition& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
41 inline ComparisonOperator GetComparison() const { return m_comparison; }
42 inline bool ComparisonHasBeenSet() const { return m_comparisonHasBeenSet; }
43 inline void SetComparison(ComparisonOperator value) {
44 m_comparisonHasBeenSet = true;
45 m_comparison = value;
46 }
48 SetComparison(value);
49 return *this;
50 }
52
54
58 inline const Aws::Vector<double>& GetValues() const { return m_values; }
59 inline bool ValuesHasBeenSet() const { return m_valuesHasBeenSet; }
60 template <typename ValuesT = Aws::Vector<double>>
61 void SetValues(ValuesT&& value) {
62 m_valuesHasBeenSet = true;
63 m_values = std::forward<ValuesT>(value);
64 }
65 template <typename ValuesT = Aws::Vector<double>>
67 SetValues(std::forward<ValuesT>(value));
68 return *this;
69 }
70 inline DoubleCriteriaCondition& AddValues(double value) {
71 m_valuesHasBeenSet = true;
72 m_values.push_back(value);
73 return *this;
74 }
76 private:
78
79 Aws::Vector<double> m_values;
80 bool m_comparisonHasBeenSet = false;
81 bool m_valuesHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace ComputeOptimizerAutomation
86} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API DoubleCriteriaCondition()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZERAUTOMATION_API DoubleCriteriaCondition(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZERAUTOMATION_API DoubleCriteriaCondition & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
DoubleCriteriaCondition & WithComparison(ComparisonOperator value)
std::vector< T, Aws::Allocator< T > > Vector