AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Remediation.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/codeguru-security/model/Recommendation.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codeguru-security/model/SuggestedFix.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeGuruSecurity
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_CODEGURUSECURITY_API Remediation();
37 AWS_CODEGURUSECURITY_API Remediation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUSECURITY_API Remediation& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Recommendation& GetRecommendation() const{ return m_recommendation; }
48 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
49 inline void SetRecommendation(const Recommendation& value) { m_recommendationHasBeenSet = true; m_recommendation = value; }
50 inline void SetRecommendation(Recommendation&& value) { m_recommendationHasBeenSet = true; m_recommendation = std::move(value); }
51 inline Remediation& WithRecommendation(const Recommendation& value) { SetRecommendation(value); return *this;}
52 inline Remediation& WithRecommendation(Recommendation&& value) { SetRecommendation(std::move(value)); return *this;}
54
56
60 inline const Aws::Vector<SuggestedFix>& GetSuggestedFixes() const{ return m_suggestedFixes; }
61 inline bool SuggestedFixesHasBeenSet() const { return m_suggestedFixesHasBeenSet; }
62 inline void SetSuggestedFixes(const Aws::Vector<SuggestedFix>& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes = value; }
63 inline void SetSuggestedFixes(Aws::Vector<SuggestedFix>&& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes = std::move(value); }
64 inline Remediation& WithSuggestedFixes(const Aws::Vector<SuggestedFix>& value) { SetSuggestedFixes(value); return *this;}
65 inline Remediation& WithSuggestedFixes(Aws::Vector<SuggestedFix>&& value) { SetSuggestedFixes(std::move(value)); return *this;}
66 inline Remediation& AddSuggestedFixes(const SuggestedFix& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes.push_back(value); return *this; }
67 inline Remediation& AddSuggestedFixes(SuggestedFix&& value) { m_suggestedFixesHasBeenSet = true; m_suggestedFixes.push_back(std::move(value)); return *this; }
69 private:
70
71 Recommendation m_recommendation;
72 bool m_recommendationHasBeenSet = false;
73
74 Aws::Vector<SuggestedFix> m_suggestedFixes;
75 bool m_suggestedFixesHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace CodeGuruSecurity
80} // namespace Aws
Remediation & AddSuggestedFixes(const SuggestedFix &value)
Definition Remediation.h:66
Remediation & AddSuggestedFixes(SuggestedFix &&value)
Definition Remediation.h:67
Remediation & WithSuggestedFixes(Aws::Vector< SuggestedFix > &&value)
Definition Remediation.h:65
AWS_CODEGURUSECURITY_API Remediation & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< SuggestedFix > & GetSuggestedFixes() const
Definition Remediation.h:60
Remediation & WithSuggestedFixes(const Aws::Vector< SuggestedFix > &value)
Definition Remediation.h:64
Remediation & WithRecommendation(Recommendation &&value)
Definition Remediation.h:52
void SetRecommendation(const Recommendation &value)
Definition Remediation.h:49
Remediation & WithRecommendation(const Recommendation &value)
Definition Remediation.h:51
void SetRecommendation(Recommendation &&value)
Definition Remediation.h:50
AWS_CODEGURUSECURITY_API Remediation()
void SetSuggestedFixes(Aws::Vector< SuggestedFix > &&value)
Definition Remediation.h:63
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
const Recommendation & GetRecommendation() const
Definition Remediation.h:47
AWS_CODEGURUSECURITY_API Remediation(Aws::Utils::Json::JsonView jsonValue)
void SetSuggestedFixes(const Aws::Vector< SuggestedFix > &value)
Definition Remediation.h:62
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue