AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
PreviewResultSummary.h
1
6#pragma once
7#include <aws/compute-optimizer-automation/ComputeOptimizerAutomation_EXPORTS.h>
8#include <aws/compute-optimizer-automation/model/RulePreviewTotal.h>
9#include <aws/core/utils/memory/stl/AWSString.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 PreviewResultSummary() = default;
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline const Aws::String& GetKey() const { return m_key; }
41 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
42 template <typename KeyT = Aws::String>
43 void SetKey(KeyT&& value) {
44 m_keyHasBeenSet = true;
45 m_key = std::forward<KeyT>(value);
46 }
47 template <typename KeyT = Aws::String>
49 SetKey(std::forward<KeyT>(value));
50 return *this;
51 }
53
55
56 inline const RulePreviewTotal& GetTotal() const { return m_total; }
57 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
58 template <typename TotalT = RulePreviewTotal>
59 void SetTotal(TotalT&& value) {
60 m_totalHasBeenSet = true;
61 m_total = std::forward<TotalT>(value);
62 }
63 template <typename TotalT = RulePreviewTotal>
65 SetTotal(std::forward<TotalT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_key;
71
72 RulePreviewTotal m_total;
73 bool m_keyHasBeenSet = false;
74 bool m_totalHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ComputeOptimizerAutomation
79} // namespace Aws
AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZERAUTOMATION_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String