AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename InferredWorkloadTypesT = Aws::Vector<InferredWorkloadType>>
69 void SetInferredWorkloadTypes(InferredWorkloadTypesT&& value) { m_inferredWorkloadTypesHasBeenSet = true; m_inferredWorkloadTypes = std::forward<InferredWorkloadTypesT>(value); }
70 template<typename InferredWorkloadTypesT = Aws::Vector<InferredWorkloadType>>
71 InferredWorkloadSaving& WithInferredWorkloadTypes(InferredWorkloadTypesT&& value) { SetInferredWorkloadTypes(std::forward<InferredWorkloadTypesT>(value)); return *this;}
72 inline InferredWorkloadSaving& AddInferredWorkloadTypes(InferredWorkloadType value) { m_inferredWorkloadTypesHasBeenSet = true; m_inferredWorkloadTypes.push_back(value); return *this; }
74
76
81 inline const EstimatedMonthlySavings& GetEstimatedMonthlySavings() const { return m_estimatedMonthlySavings; }
82 inline bool EstimatedMonthlySavingsHasBeenSet() const { return m_estimatedMonthlySavingsHasBeenSet; }
83 template<typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
84 void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) { m_estimatedMonthlySavingsHasBeenSet = true; m_estimatedMonthlySavings = std::forward<EstimatedMonthlySavingsT>(value); }
85 template<typename EstimatedMonthlySavingsT = EstimatedMonthlySavings>
86 InferredWorkloadSaving& WithEstimatedMonthlySavings(EstimatedMonthlySavingsT&& value) { SetEstimatedMonthlySavings(std::forward<EstimatedMonthlySavingsT>(value)); return *this;}
88 private:
89
90 Aws::Vector<InferredWorkloadType> m_inferredWorkloadTypes;
91 bool m_inferredWorkloadTypesHasBeenSet = false;
92
93 EstimatedMonthlySavings m_estimatedMonthlySavings;
94 bool m_estimatedMonthlySavingsHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ComputeOptimizer
99} // namespace Aws
InferredWorkloadSaving & WithEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInferredWorkloadTypes(InferredWorkloadTypesT &&value)
void SetEstimatedMonthlySavings(EstimatedMonthlySavingsT &&value)
InferredWorkloadSaving & AddInferredWorkloadTypes(InferredWorkloadType value)
const EstimatedMonthlySavings & GetEstimatedMonthlySavings() const
const Aws::Vector< InferredWorkloadType > & GetInferredWorkloadTypes() const
AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving()=default
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_COMPUTEOPTIMIZER_API InferredWorkloadSaving(Aws::Utils::Json::JsonView jsonValue)
InferredWorkloadSaving & WithInferredWorkloadTypes(InferredWorkloadTypesT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue