AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ComponentRecommendation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
10#include <aws/resiliencehub/model/ConfigRecommendation.h>
11#include <aws/resiliencehub/model/RecommendationComplianceStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResilienceHub {
23namespace Model {
24
33 public:
34 AWS_RESILIENCEHUB_API ComponentRecommendation() = default;
35 AWS_RESILIENCEHUB_API ComponentRecommendation(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetAppComponentName() const { return m_appComponentName; }
44 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
45 template <typename AppComponentNameT = Aws::String>
46 void SetAppComponentName(AppComponentNameT&& value) {
47 m_appComponentNameHasBeenSet = true;
48 m_appComponentName = std::forward<AppComponentNameT>(value);
49 }
50 template <typename AppComponentNameT = Aws::String>
51 ComponentRecommendation& WithAppComponentName(AppComponentNameT&& value) {
52 SetAppComponentName(std::forward<AppComponentNameT>(value));
53 return *this;
54 }
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) {
65 m_configRecommendationsHasBeenSet = true;
66 m_configRecommendations = std::forward<ConfigRecommendationsT>(value);
67 }
68 template <typename ConfigRecommendationsT = Aws::Vector<ConfigRecommendation>>
69 ComponentRecommendation& WithConfigRecommendations(ConfigRecommendationsT&& value) {
70 SetConfigRecommendations(std::forward<ConfigRecommendationsT>(value));
71 return *this;
72 }
73 template <typename ConfigRecommendationsT = ConfigRecommendation>
74 ComponentRecommendation& AddConfigRecommendations(ConfigRecommendationsT&& value) {
75 m_configRecommendationsHasBeenSet = true;
76 m_configRecommendations.emplace_back(std::forward<ConfigRecommendationsT>(value));
77 return *this;
78 }
80
82
85 inline RecommendationComplianceStatus GetRecommendationStatus() const { return m_recommendationStatus; }
86 inline bool RecommendationStatusHasBeenSet() const { return m_recommendationStatusHasBeenSet; }
88 m_recommendationStatusHasBeenSet = true;
89 m_recommendationStatus = value;
90 }
93 return *this;
94 }
96 private:
97 Aws::String m_appComponentName;
98
99 Aws::Vector<ConfigRecommendation> m_configRecommendations;
100
102 bool m_appComponentNameHasBeenSet = false;
103 bool m_configRecommendationsHasBeenSet = false;
104 bool m_recommendationStatusHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace ResilienceHub
109} // 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