AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2RecommendationsExportPreferences.h
1
6#pragma once
7#include <aws/discovery/ApplicationDiscoveryService_EXPORTS.h>
8#include <aws/discovery/model/UsageMetricBasis.h>
9#include <aws/discovery/model/Tenancy.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/discovery/model/ReservedInstanceOptions.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace ApplicationDiscoveryService
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_APPLICATIONDISCOVERYSERVICE_API Ec2RecommendationsExportPreferences();
41 AWS_APPLICATIONDISCOVERYSERVICE_API Ec2RecommendationsExportPreferences(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPLICATIONDISCOVERYSERVICE_API Ec2RecommendationsExportPreferences& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
52 inline bool GetEnabled() const{ return m_enabled; }
53 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
54 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
55 inline Ec2RecommendationsExportPreferences& WithEnabled(bool value) { SetEnabled(value); return *this;}
57
59
63 inline const UsageMetricBasis& GetCpuPerformanceMetricBasis() const{ return m_cpuPerformanceMetricBasis; }
64 inline bool CpuPerformanceMetricBasisHasBeenSet() const { return m_cpuPerformanceMetricBasisHasBeenSet; }
65 inline void SetCpuPerformanceMetricBasis(const UsageMetricBasis& value) { m_cpuPerformanceMetricBasisHasBeenSet = true; m_cpuPerformanceMetricBasis = value; }
66 inline void SetCpuPerformanceMetricBasis(UsageMetricBasis&& value) { m_cpuPerformanceMetricBasisHasBeenSet = true; m_cpuPerformanceMetricBasis = std::move(value); }
70
72
76 inline const UsageMetricBasis& GetRamPerformanceMetricBasis() const{ return m_ramPerformanceMetricBasis; }
77 inline bool RamPerformanceMetricBasisHasBeenSet() const { return m_ramPerformanceMetricBasisHasBeenSet; }
78 inline void SetRamPerformanceMetricBasis(const UsageMetricBasis& value) { m_ramPerformanceMetricBasisHasBeenSet = true; m_ramPerformanceMetricBasis = value; }
79 inline void SetRamPerformanceMetricBasis(UsageMetricBasis&& value) { m_ramPerformanceMetricBasisHasBeenSet = true; m_ramPerformanceMetricBasis = std::move(value); }
83
85
88 inline const Tenancy& GetTenancy() const{ return m_tenancy; }
89 inline bool TenancyHasBeenSet() const { return m_tenancyHasBeenSet; }
90 inline void SetTenancy(const Tenancy& value) { m_tenancyHasBeenSet = true; m_tenancy = value; }
91 inline void SetTenancy(Tenancy&& value) { m_tenancyHasBeenSet = true; m_tenancy = std::move(value); }
92 inline Ec2RecommendationsExportPreferences& WithTenancy(const Tenancy& value) { SetTenancy(value); return *this;}
93 inline Ec2RecommendationsExportPreferences& WithTenancy(Tenancy&& value) { SetTenancy(std::move(value)); return *this;}
95
97
100 inline const Aws::Vector<Aws::String>& GetExcludedInstanceTypes() const{ return m_excludedInstanceTypes; }
101 inline bool ExcludedInstanceTypesHasBeenSet() const { return m_excludedInstanceTypesHasBeenSet; }
102 inline void SetExcludedInstanceTypes(const Aws::Vector<Aws::String>& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes = value; }
103 inline void SetExcludedInstanceTypes(Aws::Vector<Aws::String>&& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes = std::move(value); }
106 inline Ec2RecommendationsExportPreferences& AddExcludedInstanceTypes(const Aws::String& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes.push_back(value); return *this; }
107 inline Ec2RecommendationsExportPreferences& AddExcludedInstanceTypes(Aws::String&& value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes.push_back(std::move(value)); return *this; }
108 inline Ec2RecommendationsExportPreferences& AddExcludedInstanceTypes(const char* value) { m_excludedInstanceTypesHasBeenSet = true; m_excludedInstanceTypes.push_back(value); return *this; }
110
112
119 inline const Aws::String& GetPreferredRegion() const{ return m_preferredRegion; }
120 inline bool PreferredRegionHasBeenSet() const { return m_preferredRegionHasBeenSet; }
121 inline void SetPreferredRegion(const Aws::String& value) { m_preferredRegionHasBeenSet = true; m_preferredRegion = value; }
122 inline void SetPreferredRegion(Aws::String&& value) { m_preferredRegionHasBeenSet = true; m_preferredRegion = std::move(value); }
123 inline void SetPreferredRegion(const char* value) { m_preferredRegionHasBeenSet = true; m_preferredRegion.assign(value); }
126 inline Ec2RecommendationsExportPreferences& WithPreferredRegion(const char* value) { SetPreferredRegion(value); return *this;}
128
130
134 inline const ReservedInstanceOptions& GetReservedInstanceOptions() const{ return m_reservedInstanceOptions; }
135 inline bool ReservedInstanceOptionsHasBeenSet() const { return m_reservedInstanceOptionsHasBeenSet; }
136 inline void SetReservedInstanceOptions(const ReservedInstanceOptions& value) { m_reservedInstanceOptionsHasBeenSet = true; m_reservedInstanceOptions = value; }
137 inline void SetReservedInstanceOptions(ReservedInstanceOptions&& value) { m_reservedInstanceOptionsHasBeenSet = true; m_reservedInstanceOptions = std::move(value); }
141 private:
142
143 bool m_enabled;
144 bool m_enabledHasBeenSet = false;
145
146 UsageMetricBasis m_cpuPerformanceMetricBasis;
147 bool m_cpuPerformanceMetricBasisHasBeenSet = false;
148
149 UsageMetricBasis m_ramPerformanceMetricBasis;
150 bool m_ramPerformanceMetricBasisHasBeenSet = false;
151
152 Tenancy m_tenancy;
153 bool m_tenancyHasBeenSet = false;
154
155 Aws::Vector<Aws::String> m_excludedInstanceTypes;
156 bool m_excludedInstanceTypesHasBeenSet = false;
157
158 Aws::String m_preferredRegion;
159 bool m_preferredRegionHasBeenSet = false;
160
161 ReservedInstanceOptions m_reservedInstanceOptions;
162 bool m_reservedInstanceOptionsHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace ApplicationDiscoveryService
167} // namespace Aws
Ec2RecommendationsExportPreferences & WithCpuPerformanceMetricBasis(UsageMetricBasis &&value)
Ec2RecommendationsExportPreferences & WithPreferredRegion(const Aws::String &value)
AWS_APPLICATIONDISCOVERYSERVICE_API Ec2RecommendationsExportPreferences & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPLICATIONDISCOVERYSERVICE_API Ec2RecommendationsExportPreferences(Aws::Utils::Json::JsonView jsonValue)
Ec2RecommendationsExportPreferences & WithRamPerformanceMetricBasis(UsageMetricBasis &&value)
Ec2RecommendationsExportPreferences & WithExcludedInstanceTypes(const Aws::Vector< Aws::String > &value)
Ec2RecommendationsExportPreferences & WithRamPerformanceMetricBasis(const UsageMetricBasis &value)
AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Ec2RecommendationsExportPreferences & WithReservedInstanceOptions(ReservedInstanceOptions &&value)
Ec2RecommendationsExportPreferences & WithCpuPerformanceMetricBasis(const UsageMetricBasis &value)
Ec2RecommendationsExportPreferences & WithReservedInstanceOptions(const ReservedInstanceOptions &value)
Ec2RecommendationsExportPreferences & WithExcludedInstanceTypes(Aws::Vector< Aws::String > &&value)
Ec2RecommendationsExportPreferences & AddExcludedInstanceTypes(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue