AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConfigRecommendation.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/resiliencehub/model/Cost.h>
11#include <aws/resiliencehub/model/HaArchitecture.h>
12#include <aws/resiliencehub/model/ConfigRecommendationOptimizationType.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/resiliencehub/model/DisruptionType.h>
15#include <aws/resiliencehub/model/DisruptionCompliance.h>
16#include <aws/resiliencehub/model/RecommendationDisruptionCompliance.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26 class JsonView;
27} // namespace Json
28} // namespace Utils
29namespace ResilienceHub
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_RESILIENCEHUB_API ConfigRecommendation();
43 AWS_RESILIENCEHUB_API ConfigRecommendation(Aws::Utils::Json::JsonView jsonValue);
45 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
52 inline const Aws::String& GetAppComponentName() const{ return m_appComponentName; }
53 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
54 inline void SetAppComponentName(const Aws::String& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = value; }
55 inline void SetAppComponentName(Aws::String&& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::move(value); }
56 inline void SetAppComponentName(const char* value) { m_appComponentNameHasBeenSet = true; m_appComponentName.assign(value); }
57 inline ConfigRecommendation& WithAppComponentName(const Aws::String& value) { SetAppComponentName(value); return *this;}
58 inline ConfigRecommendation& WithAppComponentName(Aws::String&& value) { SetAppComponentName(std::move(value)); return *this;}
59 inline ConfigRecommendation& WithAppComponentName(const char* value) { SetAppComponentName(value); return *this;}
61
63
67 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetCompliance() const{ return m_compliance; }
68 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
69 inline void SetCompliance(const Aws::Map<DisruptionType, DisruptionCompliance>& value) { m_complianceHasBeenSet = true; m_compliance = value; }
70 inline void SetCompliance(Aws::Map<DisruptionType, DisruptionCompliance>&& value) { m_complianceHasBeenSet = true; m_compliance = std::move(value); }
73 inline ConfigRecommendation& AddCompliance(const DisruptionType& key, const DisruptionCompliance& value) { m_complianceHasBeenSet = true; m_compliance.emplace(key, value); return *this; }
74 inline ConfigRecommendation& AddCompliance(DisruptionType&& key, const DisruptionCompliance& value) { m_complianceHasBeenSet = true; m_compliance.emplace(std::move(key), value); return *this; }
75 inline ConfigRecommendation& AddCompliance(const DisruptionType& key, DisruptionCompliance&& value) { m_complianceHasBeenSet = true; m_compliance.emplace(key, std::move(value)); return *this; }
76 inline ConfigRecommendation& AddCompliance(DisruptionType&& key, DisruptionCompliance&& value) { m_complianceHasBeenSet = true; m_compliance.emplace(std::move(key), std::move(value)); return *this; }
78
80
83 inline const Cost& GetCost() const{ return m_cost; }
84 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
85 inline void SetCost(const Cost& value) { m_costHasBeenSet = true; m_cost = value; }
86 inline void SetCost(Cost&& value) { m_costHasBeenSet = true; m_cost = std::move(value); }
87 inline ConfigRecommendation& WithCost(const Cost& value) { SetCost(value); return *this;}
88 inline ConfigRecommendation& WithCost(Cost&& value) { SetCost(std::move(value)); return *this;}
90
92
95 inline const Aws::String& GetDescription() const{ return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 inline ConfigRecommendation& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 inline ConfigRecommendation& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
102 inline ConfigRecommendation& WithDescription(const char* value) { SetDescription(value); return *this;}
104
106
109 inline const HaArchitecture& GetHaArchitecture() const{ return m_haArchitecture; }
110 inline bool HaArchitectureHasBeenSet() const { return m_haArchitectureHasBeenSet; }
111 inline void SetHaArchitecture(const HaArchitecture& value) { m_haArchitectureHasBeenSet = true; m_haArchitecture = value; }
112 inline void SetHaArchitecture(HaArchitecture&& value) { m_haArchitectureHasBeenSet = true; m_haArchitecture = std::move(value); }
113 inline ConfigRecommendation& WithHaArchitecture(const HaArchitecture& value) { SetHaArchitecture(value); return *this;}
114 inline ConfigRecommendation& WithHaArchitecture(HaArchitecture&& value) { SetHaArchitecture(std::move(value)); return *this;}
116
118
121 inline const Aws::String& GetName() const{ return m_name; }
122 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
123 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
124 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
125 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
126 inline ConfigRecommendation& WithName(const Aws::String& value) { SetName(value); return *this;}
127 inline ConfigRecommendation& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
128 inline ConfigRecommendation& WithName(const char* value) { SetName(value); return *this;}
130
132
135 inline const ConfigRecommendationOptimizationType& GetOptimizationType() const{ return m_optimizationType; }
136 inline bool OptimizationTypeHasBeenSet() const { return m_optimizationTypeHasBeenSet; }
137 inline void SetOptimizationType(const ConfigRecommendationOptimizationType& value) { m_optimizationTypeHasBeenSet = true; m_optimizationType = value; }
138 inline void SetOptimizationType(ConfigRecommendationOptimizationType&& value) { m_optimizationTypeHasBeenSet = true; m_optimizationType = std::move(value); }
142
144
148 inline const Aws::Map<DisruptionType, RecommendationDisruptionCompliance>& GetRecommendationCompliance() const{ return m_recommendationCompliance; }
149 inline bool RecommendationComplianceHasBeenSet() const { return m_recommendationComplianceHasBeenSet; }
150 inline void SetRecommendationCompliance(const Aws::Map<DisruptionType, RecommendationDisruptionCompliance>& value) { m_recommendationComplianceHasBeenSet = true; m_recommendationCompliance = value; }
151 inline void SetRecommendationCompliance(Aws::Map<DisruptionType, RecommendationDisruptionCompliance>&& value) { m_recommendationComplianceHasBeenSet = true; m_recommendationCompliance = std::move(value); }
154 inline ConfigRecommendation& AddRecommendationCompliance(const DisruptionType& key, const RecommendationDisruptionCompliance& value) { m_recommendationComplianceHasBeenSet = true; m_recommendationCompliance.emplace(key, value); return *this; }
155 inline ConfigRecommendation& AddRecommendationCompliance(DisruptionType&& key, const RecommendationDisruptionCompliance& value) { m_recommendationComplianceHasBeenSet = true; m_recommendationCompliance.emplace(std::move(key), value); return *this; }
156 inline ConfigRecommendation& AddRecommendationCompliance(const DisruptionType& key, RecommendationDisruptionCompliance&& value) { m_recommendationComplianceHasBeenSet = true; m_recommendationCompliance.emplace(key, std::move(value)); return *this; }
157 inline ConfigRecommendation& AddRecommendationCompliance(DisruptionType&& key, RecommendationDisruptionCompliance&& value) { m_recommendationComplianceHasBeenSet = true; m_recommendationCompliance.emplace(std::move(key), std::move(value)); return *this; }
159
161
164 inline const Aws::String& GetReferenceId() const{ return m_referenceId; }
165 inline bool ReferenceIdHasBeenSet() const { return m_referenceIdHasBeenSet; }
166 inline void SetReferenceId(const Aws::String& value) { m_referenceIdHasBeenSet = true; m_referenceId = value; }
167 inline void SetReferenceId(Aws::String&& value) { m_referenceIdHasBeenSet = true; m_referenceId = std::move(value); }
168 inline void SetReferenceId(const char* value) { m_referenceIdHasBeenSet = true; m_referenceId.assign(value); }
169 inline ConfigRecommendation& WithReferenceId(const Aws::String& value) { SetReferenceId(value); return *this;}
170 inline ConfigRecommendation& WithReferenceId(Aws::String&& value) { SetReferenceId(std::move(value)); return *this;}
171 inline ConfigRecommendation& WithReferenceId(const char* value) { SetReferenceId(value); return *this;}
173
175
178 inline const Aws::Vector<Aws::String>& GetSuggestedChanges() const{ return m_suggestedChanges; }
179 inline bool SuggestedChangesHasBeenSet() const { return m_suggestedChangesHasBeenSet; }
180 inline void SetSuggestedChanges(const Aws::Vector<Aws::String>& value) { m_suggestedChangesHasBeenSet = true; m_suggestedChanges = value; }
181 inline void SetSuggestedChanges(Aws::Vector<Aws::String>&& value) { m_suggestedChangesHasBeenSet = true; m_suggestedChanges = std::move(value); }
184 inline ConfigRecommendation& AddSuggestedChanges(const Aws::String& value) { m_suggestedChangesHasBeenSet = true; m_suggestedChanges.push_back(value); return *this; }
185 inline ConfigRecommendation& AddSuggestedChanges(Aws::String&& value) { m_suggestedChangesHasBeenSet = true; m_suggestedChanges.push_back(std::move(value)); return *this; }
186 inline ConfigRecommendation& AddSuggestedChanges(const char* value) { m_suggestedChangesHasBeenSet = true; m_suggestedChanges.push_back(value); return *this; }
188 private:
189
190 Aws::String m_appComponentName;
191 bool m_appComponentNameHasBeenSet = false;
192
194 bool m_complianceHasBeenSet = false;
195
196 Cost m_cost;
197 bool m_costHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 HaArchitecture m_haArchitecture;
203 bool m_haArchitectureHasBeenSet = false;
204
205 Aws::String m_name;
206 bool m_nameHasBeenSet = false;
207
208 ConfigRecommendationOptimizationType m_optimizationType;
209 bool m_optimizationTypeHasBeenSet = false;
210
212 bool m_recommendationComplianceHasBeenSet = false;
213
214 Aws::String m_referenceId;
215 bool m_referenceIdHasBeenSet = false;
216
217 Aws::Vector<Aws::String> m_suggestedChanges;
218 bool m_suggestedChangesHasBeenSet = false;
219 };
220
221} // namespace Model
222} // namespace ResilienceHub
223} // namespace Aws
ConfigRecommendation & WithAppComponentName(const Aws::String &value)
ConfigRecommendation & WithDescription(const Aws::String &value)
void SetCompliance(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
ConfigRecommendation & AddSuggestedChanges(Aws::String &&value)
ConfigRecommendation & WithOptimizationType(const ConfigRecommendationOptimizationType &value)
ConfigRecommendation & AddCompliance(const DisruptionType &key, DisruptionCompliance &&value)
ConfigRecommendation & WithCompliance(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
ConfigRecommendation & AddCompliance(DisruptionType &&key, DisruptionCompliance &&value)
ConfigRecommendation & WithName(const Aws::String &value)
void SetSuggestedChanges(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetSuggestedChanges() const
const Aws::Map< DisruptionType, RecommendationDisruptionCompliance > & GetRecommendationCompliance() const
ConfigRecommendation & AddRecommendationCompliance(const DisruptionType &key, const RecommendationDisruptionCompliance &value)
void SetHaArchitecture(const HaArchitecture &value)
ConfigRecommendation & AddCompliance(DisruptionType &&key, const DisruptionCompliance &value)
ConfigRecommendation & WithCost(const Cost &value)
ConfigRecommendation & WithCost(Cost &&value)
void SetCompliance(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
void SetSuggestedChanges(const Aws::Vector< Aws::String > &value)
ConfigRecommendation & WithAppComponentName(const char *value)
ConfigRecommendation & AddSuggestedChanges(const Aws::String &value)
ConfigRecommendation & WithCompliance(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
AWS_RESILIENCEHUB_API ConfigRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
ConfigRecommendation & WithReferenceId(const Aws::String &value)
ConfigRecommendation & WithSuggestedChanges(const Aws::Vector< Aws::String > &value)
void SetOptimizationType(const ConfigRecommendationOptimizationType &value)
ConfigRecommendation & AddRecommendationCompliance(DisruptionType &&key, const RecommendationDisruptionCompliance &value)
ConfigRecommendation & AddSuggestedChanges(const char *value)
const Aws::Map< DisruptionType, DisruptionCompliance > & GetCompliance() const
ConfigRecommendation & WithHaArchitecture(const HaArchitecture &value)
ConfigRecommendation & WithDescription(Aws::String &&value)
ConfigRecommendation & WithRecommendationCompliance(Aws::Map< DisruptionType, RecommendationDisruptionCompliance > &&value)
AWS_RESILIENCEHUB_API ConfigRecommendation(Aws::Utils::Json::JsonView jsonValue)
ConfigRecommendation & WithSuggestedChanges(Aws::Vector< Aws::String > &&value)
ConfigRecommendation & WithDescription(const char *value)
ConfigRecommendation & AddRecommendationCompliance(const DisruptionType &key, RecommendationDisruptionCompliance &&value)
void SetOptimizationType(ConfigRecommendationOptimizationType &&value)
void SetRecommendationCompliance(const Aws::Map< DisruptionType, RecommendationDisruptionCompliance > &value)
ConfigRecommendation & AddRecommendationCompliance(DisruptionType &&key, RecommendationDisruptionCompliance &&value)
ConfigRecommendation & WithHaArchitecture(HaArchitecture &&value)
ConfigRecommendation & WithName(const char *value)
ConfigRecommendation & WithAppComponentName(Aws::String &&value)
ConfigRecommendation & WithOptimizationType(ConfigRecommendationOptimizationType &&value)
void SetRecommendationCompliance(Aws::Map< DisruptionType, RecommendationDisruptionCompliance > &&value)
ConfigRecommendation & WithName(Aws::String &&value)
ConfigRecommendation & WithReferenceId(Aws::String &&value)
const ConfigRecommendationOptimizationType & GetOptimizationType() const
ConfigRecommendation & AddCompliance(const DisruptionType &key, const DisruptionCompliance &value)
ConfigRecommendation & WithReferenceId(const char *value)
ConfigRecommendation & WithRecommendationCompliance(const Aws::Map< DisruptionType, RecommendationDisruptionCompliance > &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue