AWS SDK for C++

AWS SDK for C++ Version 1.11.772

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ComputeOptimizerAutomation {
21namespace Model {
22
30 public:
31 AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary() = default;
32 AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() 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=(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_COMPUTEOPTIMIZERAUTOMATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZERAUTOMATION_API PreviewResultSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue