AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
RemediationParameter.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
28 public:
29 AWS_SECURITYHUB_API RemediationParameter() = default;
30 AWS_SECURITYHUB_API RemediationParameter(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetType() const { return m_type; }
57 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
58 template <typename TypeT = Aws::String>
59 void SetType(TypeT&& value) {
60 m_typeHasBeenSet = true;
61 m_type = std::forward<TypeT>(value);
62 }
63 template <typename TypeT = Aws::String>
65 SetType(std::forward<TypeT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 RemediationParameter& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87
89
93 inline bool GetRequired() const { return m_required; }
94 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
95 inline void SetRequired(bool value) {
96 m_requiredHasBeenSet = true;
97 m_required = value;
98 }
99 inline RemediationParameter& WithRequired(bool value) {
100 SetRequired(value);
101 return *this;
102 }
104 private:
105 Aws::String m_name;
106
107 Aws::String m_type;
108
109 Aws::String m_description;
110
111 bool m_required{false};
112 bool m_nameHasBeenSet = false;
113 bool m_typeHasBeenSet = false;
114 bool m_descriptionHasBeenSet = false;
115 bool m_requiredHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace SecurityHub
120} // namespace Aws
AWS_SECURITYHUB_API RemediationParameter()=default
RemediationParameter & WithType(TypeT &&value)
RemediationParameter & WithRequired(bool value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SECURITYHUB_API RemediationParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API RemediationParameter(Aws::Utils::Json::JsonView jsonValue)
RemediationParameter & WithName(NameT &&value)
RemediationParameter & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue