AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RecommendationPreferences.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/CpuVendorArchitecture.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ComputeOptimizer
23{
24namespace Model
25{
26
38 {
39 public:
40 AWS_COMPUTEOPTIMIZER_API RecommendationPreferences();
41 AWS_COMPUTEOPTIMIZER_API RecommendationPreferences(Aws::Utils::Json::JsonView jsonValue);
43 AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
60 inline const Aws::Vector<CpuVendorArchitecture>& GetCpuVendorArchitectures() const{ return m_cpuVendorArchitectures; }
61 inline bool CpuVendorArchitecturesHasBeenSet() const { return m_cpuVendorArchitecturesHasBeenSet; }
62 inline void SetCpuVendorArchitectures(const Aws::Vector<CpuVendorArchitecture>& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures = value; }
63 inline void SetCpuVendorArchitectures(Aws::Vector<CpuVendorArchitecture>&& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures = std::move(value); }
66 inline RecommendationPreferences& AddCpuVendorArchitectures(const CpuVendorArchitecture& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures.push_back(value); return *this; }
67 inline RecommendationPreferences& AddCpuVendorArchitectures(CpuVendorArchitecture&& value) { m_cpuVendorArchitecturesHasBeenSet = true; m_cpuVendorArchitectures.push_back(std::move(value)); return *this; }
69 private:
70
71 Aws::Vector<CpuVendorArchitecture> m_cpuVendorArchitectures;
72 bool m_cpuVendorArchitecturesHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ComputeOptimizer
77} // namespace Aws
RecommendationPreferences & WithCpuVendorArchitectures(const Aws::Vector< CpuVendorArchitecture > &value)
AWS_COMPUTEOPTIMIZER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCpuVendorArchitectures(const Aws::Vector< CpuVendorArchitecture > &value)
RecommendationPreferences & AddCpuVendorArchitectures(const CpuVendorArchitecture &value)
RecommendationPreferences & AddCpuVendorArchitectures(CpuVendorArchitecture &&value)
RecommendationPreferences & WithCpuVendorArchitectures(Aws::Vector< CpuVendorArchitecture > &&value)
void SetCpuVendorArchitectures(Aws::Vector< CpuVendorArchitecture > &&value)
AWS_COMPUTEOPTIMIZER_API RecommendationPreferences(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CpuVendorArchitecture > & GetCpuVendorArchitectures() const
AWS_COMPUTEOPTIMIZER_API RecommendationPreferences & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue