AWS SDK for C++

AWS SDK for C++ Version 1.11.812

Loading...
Searching...
No Matches
RecommendationPreferences.h
1
6#pragma once
7#include <aws/compute-optimizer/ComputeOptimizer_EXPORTS.h>
8#include <aws/compute-optimizer/model/CpuVendorArchitecture.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace ComputeOptimizer {
21namespace Model {
22
34 public:
35 AWS_COMPUTEOPTIMIZER_API RecommendationPreferences() = default;
36 AWS_COMPUTEOPTIMIZER_API RecommendationPreferences(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_COMPUTEOPTIMIZER_API RecommendationPreferences& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
54 inline const Aws::Vector<CpuVendorArchitecture>& GetCpuVendorArchitectures() const { return m_cpuVendorArchitectures; }
55 inline bool CpuVendorArchitecturesHasBeenSet() const { return m_cpuVendorArchitecturesHasBeenSet; }
56 template <typename CpuVendorArchitecturesT = Aws::Vector<CpuVendorArchitecture>>
57 void SetCpuVendorArchitectures(CpuVendorArchitecturesT&& value) {
58 m_cpuVendorArchitecturesHasBeenSet = true;
59 m_cpuVendorArchitectures = std::forward<CpuVendorArchitecturesT>(value);
60 }
61 template <typename CpuVendorArchitecturesT = Aws::Vector<CpuVendorArchitecture>>
62 RecommendationPreferences& WithCpuVendorArchitectures(CpuVendorArchitecturesT&& value) {
63 SetCpuVendorArchitectures(std::forward<CpuVendorArchitecturesT>(value));
64 return *this;
65 }
67 m_cpuVendorArchitecturesHasBeenSet = true;
68 m_cpuVendorArchitectures.push_back(value);
69 return *this;
70 }
72 private:
73 Aws::Vector<CpuVendorArchitecture> m_cpuVendorArchitectures;
74 bool m_cpuVendorArchitecturesHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace ComputeOptimizer
79} // namespace Aws
AWS_COMPUTEOPTIMIZER_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
RecommendationPreferences & WithCpuVendorArchitectures(CpuVendorArchitecturesT &&value)
RecommendationPreferences & AddCpuVendorArchitectures(CpuVendorArchitecture value)
AWS_COMPUTEOPTIMIZER_API RecommendationPreferences(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_COMPUTEOPTIMIZER_API RecommendationPreferences()=default
AWS_COMPUTEOPTIMIZER_API RecommendationPreferences & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::Vector< CpuVendorArchitecture > & GetCpuVendorArchitectures() const
std::vector< T, Aws::Allocator< T > > Vector