AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
RecommendationSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CostOptimizationHub {
20namespace Model {
21
29 public:
30 AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary() = default;
31 AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetGroup() const { return m_group; }
40 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
41 template <typename GroupT = Aws::String>
42 void SetGroup(GroupT&& value) {
43 m_groupHasBeenSet = true;
44 m_group = std::forward<GroupT>(value);
45 }
46 template <typename GroupT = Aws::String>
48 SetGroup(std::forward<GroupT>(value));
49 return *this;
50 }
52
54
58 inline double GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
59 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
60 inline void SetEstimatedMonthlySavings(double value) {
61 m_estimatedMonthlySavingsHasBeenSet = true;
62 m_estimatedMonthlySavings = value;
63 }
66 return *this;
67 }
69
71
74 inline int GetRecommendationCount() const { return m_recommendationCount; }
75 inline bool RecommendationCountHasBeenSet() const { return m_recommendationCountHasBeenSet; }
76 inline void SetRecommendationCount(int value) {
77 m_recommendationCountHasBeenSet = true;
78 m_recommendationCount = value;
79 }
82 return *this;
83 }
85 private:
86 Aws::String m_group;
87
88 double m_estimatedMonthlySavings{0.0};
89
90 int m_recommendationCount{0};
91 bool m_groupHasBeenSet = false;
92 bool m_estimatedMonthlySavingsHasBeenSet = false;
93 bool m_recommendationCountHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CostOptimizationHub
98} // namespace Aws
RecommendationSummary & WithEstimatedMonthlySavings(double value)
AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary()=default
AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue