AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentRecommendation.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/AWSVector.h>
10#include <aws/resiliencehub/model/RecommendationComplianceStatus.h>
11#include <aws/resiliencehub/model/ConfigRecommendation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResilienceHub
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_RESILIENCEHUB_API ComponentRecommendation() = default;
40 AWS_RESILIENCEHUB_API ComponentRecommendation(Aws::Utils::Json::JsonView jsonValue);
42 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetAppComponentName() const { return m_appComponentName; }
50 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
51 template<typename AppComponentNameT = Aws::String>
52 void SetAppComponentName(AppComponentNameT&& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::forward<AppComponentNameT>(value); }
53 template<typename AppComponentNameT = Aws::String>
54 ComponentRecommendation& WithAppComponentName(AppComponentNameT&& value) { SetAppComponentName(std::forward<AppComponentNameT>(value)); return *this;}
56
58
61 inline const Aws::Vector<ConfigRecommendation>& GetConfigRecommendations() const { return m_configRecommendations; }
62 inline bool ConfigRecommendationsHasBeenSet() const { return m_configRecommendationsHasBeenSet; }
63 template<typename ConfigRecommendationsT = Aws::Vector<ConfigRecommendation>>
64 void SetConfigRecommendations(ConfigRecommendationsT&& value) { m_configRecommendationsHasBeenSet = true; m_configRecommendations = std::forward<ConfigRecommendationsT>(value); }
65 template<typename ConfigRecommendationsT = Aws::Vector<ConfigRecommendation>>
66 ComponentRecommendation& WithConfigRecommendations(ConfigRecommendationsT&& value) { SetConfigRecommendations(std::forward<ConfigRecommendationsT>(value)); return *this;}
67 template<typename ConfigRecommendationsT = ConfigRecommendation>
68 ComponentRecommendation& AddConfigRecommendations(ConfigRecommendationsT&& value) { m_configRecommendationsHasBeenSet = true; m_configRecommendations.emplace_back(std::forward<ConfigRecommendationsT>(value)); return *this; }
70
72
75 inline RecommendationComplianceStatus GetRecommendationStatus() const { return m_recommendationStatus; }
76 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
77 inline void SetRecommendationStatus(RecommendationComplianceStatus value) { m_recommendationStatusHasBeenSet = true; m_recommendationStatus = value; }
80 private:
81
82 Aws::String m_appComponentName;
83 bool m_appComponentNameHasBeenSet = false;
84
85 Aws::Vector<ConfigRecommendation> m_configRecommendations;
86 bool m_configRecommendationsHasBeenSet = false;
87
89 bool m_recommendationStatusHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace ResilienceHub
94} // namespace Aws
void SetConfigRecommendations(ConfigRecommendationsT &&value)
AWS_RESILIENCEHUB_API ComponentRecommendation(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ConfigRecommendation > & GetConfigRecommendations() const
ComponentRecommendation & WithAppComponentName(AppComponentNameT &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
RecommendationComplianceStatus GetRecommendationStatus() const
void SetRecommendationStatus(RecommendationComplianceStatus value)
AWS_RESILIENCEHUB_API ComponentRecommendation()=default
ComponentRecommendation & WithRecommendationStatus(RecommendationComplianceStatus value)
AWS_RESILIENCEHUB_API ComponentRecommendation & operator=(Aws::Utils::Json::JsonView jsonValue)
ComponentRecommendation & WithConfigRecommendations(ConfigRecommendationsT &&value)
ComponentRecommendation & AddConfigRecommendations(ConfigRecommendationsT &&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