AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
RulePreviewTotal.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/EstimatedMonthlySavings.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 ComputeOptimizerAutomation {
20namespace Model {
21
29 public:
30 AWS_COMPUTEOPTIMIZERAUTOMATION_API RulePreviewTotal() = default;
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API RulePreviewTotal(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API RulePreviewTotal& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline int64_t GetRecommendedActionCount() const { return m_recommendedActionCount; }
41 inline bool RecommendedActionCountHasBeenSet() const { return m_recommendedActionCountHasBeenSet; }
42 inline void SetRecommendedActionCount(int64_t value) {
43 m_recommendedActionCountHasBeenSet = true;
44 m_recommendedActionCount = value;
45 }
48 return *this;
49 }
51
53
54 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
55 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
56 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
57 void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
58 m_estimatedMonthlySavingsHasBeenSet = true;
59 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
60 }
61 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
62 RulePreviewTotal& WithEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
63 SetEstimatedMonthlySavings(std::forward<EstimatedMonthlySavingsT>(value));
64 return *this;
65 }
67 private:
68 int64_t m_recommendedActionCount{0};
69
70 EstimatedMonthlySavings m_estimatedMonthlySavings;
71 bool m_recommendedActionCountHasBeenSet = false;
72 bool m_estimatedMonthlySavingsHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ComputeOptimizerAutomation
77} // namespace Aws
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API RulePreviewTotal(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
RulePreviewTotal & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZERAUTOMATION_API RulePreviewTotal & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZERAUTOMATION_API RulePreviewTotal()=default
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
RulePreviewTotal & WithRecommendedActionCount(int64_t value)