AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Summary.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/Finding.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/compute-optimizer/model/ReasonCodeSummary.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ComputeOptimizer
24{
25namespace Model
26{
27
33 class Summary
34 {
35 public:
36 AWS_COMPUTEOPTIMIZER_API Summary();
37 AWS_COMPUTEOPTIMIZER_API Summary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_COMPUTEOPTIMIZER_API Summary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Finding& GetName() const{ return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 inline void SetName(const Finding& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Finding&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline Summary& WithName(const Finding& value) { SetName(value); return *this;}
51 inline Summary& WithName(Finding&& value) { SetName(std::move(value)); return *this;}
53
55
58 inline double GetValue() const{ return m_value; }
59 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
60 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
61 inline Summary& WithValue(double value) { SetValue(value); return *this;}
63
65
68 inline const Aws::Vector<ReasonCodeSummary>& GetReasonCodeSummaries() const{ return m_reasonCodeSummaries; }
69 inline bool ReasonCodeSummariesHasBeenSet() const { return m_reasonCodeSummariesHasBeenSet; }
70 inline void SetReasonCodeSummaries(const Aws::Vector<ReasonCodeSummary>& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries = value; }
71 inline void SetReasonCodeSummaries(Aws::Vector<ReasonCodeSummary>&& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries = std::move(value); }
73 inline Summary& WithReasonCodeSummaries(Aws::Vector<ReasonCodeSummary>&& value) { SetReasonCodeSummaries(std::move(value)); return *this;}
74 inline Summary& AddReasonCodeSummaries(const ReasonCodeSummary& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries.push_back(value); return *this; }
75 inline Summary& AddReasonCodeSummaries(ReasonCodeSummary&& value) { m_reasonCodeSummariesHasBeenSet = true; m_reasonCodeSummaries.push_back(std::move(value)); return *this; }
77 private:
78
79 Finding m_name;
80 bool m_nameHasBeenSet = false;
81
82 double m_value;
83 bool m_valueHasBeenSet = false;
84
85 Aws::Vector<ReasonCodeSummary> m_reasonCodeSummaries;
86 bool m_reasonCodeSummariesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ComputeOptimizer
91} // namespace Aws
const Aws::Vector< ReasonCodeSummary > & GetReasonCodeSummaries() const
Definition Summary.h:68
void SetReasonCodeSummaries(const Aws::Vector< ReasonCodeSummary > &value)
Definition Summary.h:70
Summary & WithReasonCodeSummaries(const Aws::Vector< ReasonCodeSummary > &value)
Definition Summary.h:72
AWS_COMPUTEOPTIMIZER_API Summary(Aws::Utils::Json::JsonView jsonValue)
Summary & WithReasonCodeSummaries(Aws::Vector< ReasonCodeSummary > &&value)
Definition Summary.h:73
Summary & AddReasonCodeSummaries(ReasonCodeSummary &&value)
Definition Summary.h:75
void SetName(Finding &&value)
Definition Summary.h:49
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
const Finding & GetName() const
Definition Summary.h:46
Summary & WithName(Finding &&value)
Definition Summary.h:51
Summary & AddReasonCodeSummaries(const ReasonCodeSummary &value)
Definition Summary.h:74
AWS_COMPUTEOPTIMIZER_API Summary()
void SetName(const Finding &value)
Definition Summary.h:48
AWS_COMPUTEOPTIMIZER_API Summary & operator=(Aws::Utils::Json::JsonView jsonValue)
Summary & WithName(const Finding &value)
Definition Summary.h:50
void SetReasonCodeSummaries(Aws::Vector< ReasonCodeSummary > &&value)
Definition Summary.h:71
Summary & WithValue(double value)
Definition Summary.h:61
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue