AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
SecurityControlsConfiguration.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/securityhub/SecurityHub_EXPORTS.h>
10#include <aws/securityhub/model/SecurityControlCustomParameter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace SecurityHub {
22namespace Model {
23
32 public:
33 AWS_SECURITYHUB_API SecurityControlsConfiguration() = default;
36 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::Vector<Aws::String>& GetEnabledSecurityControlIdentifiers() const { return m_enabledSecurityControlIdentifiers; }
45 inline bool EnabledSecurityControlIdentifiersHasBeenSet() const { return m_enabledSecurityControlIdentifiersHasBeenSet; }
46 template <typename EnabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
47 void SetEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT&& value) {
48 m_enabledSecurityControlIdentifiersHasBeenSet = true;
49 m_enabledSecurityControlIdentifiers = std::forward<EnabledSecurityControlIdentifiersT>(value);
50 }
51 template <typename EnabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
52 SecurityControlsConfiguration& WithEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT&& value) {
53 SetEnabledSecurityControlIdentifiers(std::forward<EnabledSecurityControlIdentifiersT>(value));
54 return *this;
55 }
56 template <typename EnabledSecurityControlIdentifiersT = Aws::String>
57 SecurityControlsConfiguration& AddEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT&& value) {
58 m_enabledSecurityControlIdentifiersHasBeenSet = true;
59 m_enabledSecurityControlIdentifiers.emplace_back(std::forward<EnabledSecurityControlIdentifiersT>(value));
60 return *this;
61 }
63
65
70 inline const Aws::Vector<Aws::String>& GetDisabledSecurityControlIdentifiers() const { return m_disabledSecurityControlIdentifiers; }
71 inline bool DisabledSecurityControlIdentifiersHasBeenSet() const { return m_disabledSecurityControlIdentifiersHasBeenSet; }
72 template <typename DisabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
73 void SetDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT&& value) {
74 m_disabledSecurityControlIdentifiersHasBeenSet = true;
75 m_disabledSecurityControlIdentifiers = std::forward<DisabledSecurityControlIdentifiersT>(value);
76 }
77 template <typename DisabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
78 SecurityControlsConfiguration& WithDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT&& value) {
79 SetDisabledSecurityControlIdentifiers(std::forward<DisabledSecurityControlIdentifiersT>(value));
80 return *this;
81 }
82 template <typename DisabledSecurityControlIdentifiersT = Aws::String>
83 SecurityControlsConfiguration& AddDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT&& value) {
84 m_disabledSecurityControlIdentifiersHasBeenSet = true;
85 m_disabledSecurityControlIdentifiers.emplace_back(std::forward<DisabledSecurityControlIdentifiersT>(value));
86 return *this;
87 }
89
91
96 return m_securityControlCustomParameters;
97 }
98 inline bool SecurityControlCustomParametersHasBeenSet() const { return m_securityControlCustomParametersHasBeenSet; }
99 template <typename SecurityControlCustomParametersT = Aws::Vector<SecurityControlCustomParameter>>
100 void SetSecurityControlCustomParameters(SecurityControlCustomParametersT&& value) {
101 m_securityControlCustomParametersHasBeenSet = true;
102 m_securityControlCustomParameters = std::forward<SecurityControlCustomParametersT>(value);
103 }
104 template <typename SecurityControlCustomParametersT = Aws::Vector<SecurityControlCustomParameter>>
105 SecurityControlsConfiguration& WithSecurityControlCustomParameters(SecurityControlCustomParametersT&& value) {
106 SetSecurityControlCustomParameters(std::forward<SecurityControlCustomParametersT>(value));
107 return *this;
108 }
109 template <typename SecurityControlCustomParametersT = SecurityControlCustomParameter>
110 SecurityControlsConfiguration& AddSecurityControlCustomParameters(SecurityControlCustomParametersT&& value) {
111 m_securityControlCustomParametersHasBeenSet = true;
112 m_securityControlCustomParameters.emplace_back(std::forward<SecurityControlCustomParametersT>(value));
113 return *this;
114 }
116 private:
117 Aws::Vector<Aws::String> m_enabledSecurityControlIdentifiers;
118
119 Aws::Vector<Aws::String> m_disabledSecurityControlIdentifiers;
120
121 Aws::Vector<SecurityControlCustomParameter> m_securityControlCustomParameters;
122 bool m_enabledSecurityControlIdentifiersHasBeenSet = false;
123 bool m_disabledSecurityControlIdentifiersHasBeenSet = false;
124 bool m_securityControlCustomParametersHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace SecurityHub
129} // namespace Aws
SecurityControlsConfiguration & AddSecurityControlCustomParameters(SecurityControlCustomParametersT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT &&value)
AWS_SECURITYHUB_API SecurityControlsConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetDisabledSecurityControlIdentifiers() const
void SetSecurityControlCustomParameters(SecurityControlCustomParametersT &&value)
AWS_SECURITYHUB_API SecurityControlsConfiguration()=default
SecurityControlsConfiguration & WithDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT &&value)
SecurityControlsConfiguration & AddDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT &&value)
AWS_SECURITYHUB_API SecurityControlsConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetEnabledSecurityControlIdentifiers() const
const Aws::Vector< SecurityControlCustomParameter > & GetSecurityControlCustomParameters() const
SecurityControlsConfiguration & WithSecurityControlCustomParameters(SecurityControlCustomParametersT &&value)
SecurityControlsConfiguration & AddEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT &&value)
SecurityControlsConfiguration & WithEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT &&value)
void SetDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue