AWS SDK for C++

AWS SDK for C++ Version 1.11.813

Loading...
Searching...
No Matches
SummaryTotals.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 SummaryTotals() = default;
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API SummaryTotals(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API SummaryTotals& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline int64_t GetAutomationEventCount() const { return m_automationEventCount; }
40 inline bool AutomationEventCountHasBeenSet() const { return m_automationEventCountHasBeenSet; }
41 inline void SetAutomationEventCount(int64_t value) {
42 m_automationEventCountHasBeenSet = true;
43 m_automationEventCount = value;
44 }
45 inline SummaryTotals& WithAutomationEventCount(int64_t value) {
47 return *this;
48 }
50
52
53 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
54 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
55 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
56 void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
57 m_estimatedMonthlySavingsHasBeenSet = true;
58 m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value);
59 }
60 template <typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
61 SummaryTotals& WithEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) {
62 SetEstimatedMonthlySavings(std::forward<EstimatedMonthlySavingsT>(value));
63 return *this;
64 }
66 private:
67 int64_t m_automationEventCount{0};
68
69 EstimatedMonthlySavings m_estimatedMonthlySavings;
70 bool m_automationEventCountHasBeenSet = false;
71 bool m_estimatedMonthlySavingsHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace ComputeOptimizerAutomation
76} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API SummaryTotals()=default
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API SummaryTotals & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SummaryTotals & WithAutomationEventCount(int64_t value)
AWS_COMPUTEOPTIMIZERAUTOMATION_API SummaryTotals(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
SummaryTotals & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)