AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RecommendationSummary.h
1
6#pragma once
7#include <aws/cost-optimization-hub/CostOptimizationHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CostOptimizationHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary() = default;
36 AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_COSTOPTIMIZATIONHUB_API RecommendationSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COSTOPTIMIZATIONHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetGroup() const { return m_group; }
46 inline bool GroupHasBeenSet() const { return m_groupHasBeenSet; }
47 template<typename GroupT = Aws::String>
48 void SetGroup(GroupT&& value) { m_groupHasBeenSet = true; m_group = std::forward<GroupT>(value); }
49 template<typename GroupT = Aws::String>
50 RecommendationSummary& WithGroup(GroupT&& value) { SetGroup(std::forward<GroupT>(value)); return *this;}
52
54
58 inline double GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
59 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
60 inline void SetEstimatedMonthlySavings(double value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; }
63
65
68 inline int GetRecommendationCount() const { return m_recommendationCount; }
69 inline bool RecommendationCountHasBeenSet() const { return m_recommendationCountHasBeenSet; }
70 inline void SetRecommendationCount(int value) { m_recommendationCountHasBeenSet = true; m_recommendationCount = value; }
71 inline RecommendationSummary& WithRecommendationCount(int value) { SetRecommendationCount(value); return *this;}
73 private:
74
75 Aws::String m_group;
76 bool m_groupHasBeenSet = false;
77
78 double m_estimatedMonthlySavings{0.0};
79 bool m_estimatedMonthlySavingsHasBeenSet = false;
80
81 int m_recommendationCount{0};
82 bool m_recommendationCountHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CostOptimizationHub
87} // 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