AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
SuggestedFix.h
1
6#pragma once
7#include <aws/codeguru-security/CodeGuruSecurity_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeGuruSecurity {
20namespace Model {
21
29 public:
30 AWS_CODEGURUSECURITY_API SuggestedFix() = default;
31 AWS_CODEGURUSECURITY_API SuggestedFix(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEGURUSECURITY_API SuggestedFix& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDescription() const { return m_description; }
40 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
41 template <typename DescriptionT = Aws::String>
42 void SetDescription(DescriptionT&& value) {
43 m_descriptionHasBeenSet = true;
44 m_description = std::forward<DescriptionT>(value);
45 }
46 template <typename DescriptionT = Aws::String>
47 SuggestedFix& WithDescription(DescriptionT&& value) {
48 SetDescription(std::forward<DescriptionT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetCode() const { return m_code; }
59 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
60 template <typename CodeT = Aws::String>
61 void SetCode(CodeT&& value) {
62 m_codeHasBeenSet = true;
63 m_code = std::forward<CodeT>(value);
64 }
65 template <typename CodeT = Aws::String>
66 SuggestedFix& WithCode(CodeT&& value) {
67 SetCode(std::forward<CodeT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_description;
73
74 Aws::String m_code;
75 bool m_descriptionHasBeenSet = false;
76 bool m_codeHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace CodeGuruSecurity
81} // namespace Aws
const Aws::String & GetDescription() const
SuggestedFix & WithCode(CodeT &&value)
const Aws::String & GetCode() const
AWS_CODEGURUSECURITY_API SuggestedFix()=default
AWS_CODEGURUSECURITY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODEGURUSECURITY_API SuggestedFix & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
AWS_CODEGURUSECURITY_API SuggestedFix(Aws::Utils::Json::JsonView jsonValue)
SuggestedFix & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue