AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InferredWorkloadSaving.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/compute-optimizer/model/EstimatedMonthlySavings.h>
10#include <aws/compute-optimizer/model/InferredWorkloadType.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
39 {
40 public:
41 AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving();
42 AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
66 inline const Aws::Vector<InferredWorkloadType>& GetInferredWorkloadTypes() const{ return m_inferredWorkloadTypes; }
67 inline bool InferredWorkloadTypesHasBeenSet() const { return m_inferredWorkloadTypesHasBeenSet; }
68 inline void SetInferredWorkloadTypes(const Aws::Vector<InferredWorkloadType>& value) { m_inferredWorkloadTypesHasBeenSet = true; m_inferredWorkloadTypes = value; }
69 inline void SetInferredWorkloadTypes(Aws::Vector<InferredWorkloadType>&& value) { m_inferredWorkloadTypesHasBeenSet = true; m_inferredWorkloadTypes = std::move(value); }
72 inline InferredWorkloadSaving& AddInferredWorkloadTypes(const InferredWorkloadType& value) { m_inferredWorkloadTypesHasBeenSet = true; m_inferredWorkloadTypes.push_back(value); return *this; }
73 inline InferredWorkloadSaving& AddInferredWorkloadTypes(InferredWorkloadType&& value) { m_inferredWorkloadTypesHasBeenSet = true; m_inferredWorkloadTypes.push_back(std::move(value)); return *this; }
75
77
82 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const{ return m_estimatedMonthlySavings; }
83 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
84 inline void SetEstimatedMonthlySavings(const EstimatedMonthlySavings& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = value; }
85 inline void SetEstimatedMonthlySavings(EstimatedMonthlySavings&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::move(value); }
89 private:
90
91 Aws::Vector<InferredWorkloadType> m_inferredWorkloadTypes;
92 bool m_inferredWorkloadTypesHasBeenSet = false;
93
94 EstimatedMonthlySavings m_estimatedMonthlySavings;
95 bool m_estimatedMonthlySavingsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ComputeOptimizer
100} // namespace Aws
InferredWorkloadSaving & WithEstimatedMonthlySavings(const EstimatedMonthlySavings &value)
AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving & operator=(Aws::Utils::Json::JsonView jsonValue)
InferredWorkloadSaving & AddInferredWorkloadTypes(const InferredWorkloadType &value)
void SetInferredWorkloadTypes(const Aws::Vector< InferredWorkloadType > &value)
void SetEstimatedMonthlySavings(const EstimatedMonthlySavings &value)
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
const Aws::Vector< InferredWorkloadType > & GetInferredWorkloadTypes() const
InferredWorkloadSaving & WithEstimatedMonthlySavings(EstimatedMonthlySavings &&value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving(Aws::Utils::Json::JsonView jsonValue)
InferredWorkloadSaving & WithInferredWorkloadTypes(Aws::Vector< InferredWorkloadType > &&value)
void SetEstimatedMonthlySavings(EstimatedMonthlySavings &&value)
InferredWorkloadSaving & AddInferredWorkloadTypes(InferredWorkloadType &&value)
void SetInferredWorkloadTypes(Aws::Vector< InferredWorkloadType > &&value)
InferredWorkloadSaving & WithInferredWorkloadTypes(const Aws::Vector< InferredWorkloadType > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue