AWS SDK for C++

AWS SDK for C++ Version 1.11.786

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
33 public:
34 AWS_SECURITYHUB_API SecurityControlsConfiguration() = default;
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
45 inline const Aws::Vector<Aws::String>& GetEnabledSecurityControlIdentifiers() const { return m_enabledSecurityControlIdentifiers; }
46 inline bool EnabledSecurityControlIdentifiersHasBeenSet() const { return m_enabledSecurityControlIdentifiersHasBeenSet; }
47 template <typename EnabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
48 void SetEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT&& value) {
49 m_enabledSecurityControlIdentifiersHasBeenSet = true;
50 m_enabledSecurityControlIdentifiers = std::forward<EnabledSecurityControlIdentifiersT>(value);
51 }
52 template <typename EnabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
53 SecurityControlsConfiguration& WithEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT&& value) {
54 SetEnabledSecurityControlIdentifiers(std::forward<EnabledSecurityControlIdentifiersT>(value));
55 return *this;
56 }
57 template <typename EnabledSecurityControlIdentifiersT = Aws::String>
58 SecurityControlsConfiguration& AddEnabledSecurityControlIdentifiers(EnabledSecurityControlIdentifiersT&& value) {
59 m_enabledSecurityControlIdentifiersHasBeenSet = true;
60 m_enabledSecurityControlIdentifiers.emplace_back(std::forward<EnabledSecurityControlIdentifiersT>(value));
61 return *this;
62 }
64
66
71 inline const Aws::Vector<Aws::String>& GetDisabledSecurityControlIdentifiers() const { return m_disabledSecurityControlIdentifiers; }
72 inline bool DisabledSecurityControlIdentifiersHasBeenSet() const { return m_disabledSecurityControlIdentifiersHasBeenSet; }
73 template <typename DisabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
74 void SetDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT&& value) {
75 m_disabledSecurityControlIdentifiersHasBeenSet = true;
76 m_disabledSecurityControlIdentifiers = std::forward<DisabledSecurityControlIdentifiersT>(value);
77 }
78 template <typename DisabledSecurityControlIdentifiersT = Aws::Vector<Aws::String>>
79 SecurityControlsConfiguration& WithDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT&& value) {
80 SetDisabledSecurityControlIdentifiers(std::forward<DisabledSecurityControlIdentifiersT>(value));
81 return *this;
82 }
83 template <typename DisabledSecurityControlIdentifiersT = Aws::String>
84 SecurityControlsConfiguration& AddDisabledSecurityControlIdentifiers(DisabledSecurityControlIdentifiersT&& value) {
85 m_disabledSecurityControlIdentifiersHasBeenSet = true;
86 m_disabledSecurityControlIdentifiers.emplace_back(std::forward<DisabledSecurityControlIdentifiersT>(value));
87 return *this;
88 }
90
92
97 return m_securityControlCustomParameters;
98 }
99 inline bool SecurityControlCustomParametersHasBeenSet() const { return m_securityControlCustomParametersHasBeenSet; }
100 template <typename SecurityControlCustomParametersT = Aws::Vector<SecurityControlCustomParameter>>
101 void SetSecurityControlCustomParameters(SecurityControlCustomParametersT&& value) {
102 m_securityControlCustomParametersHasBeenSet = true;
103 m_securityControlCustomParameters = std::forward<SecurityControlCustomParametersT>(value);
104 }
105 template <typename SecurityControlCustomParametersT = Aws::Vector<SecurityControlCustomParameter>>
106 SecurityControlsConfiguration& WithSecurityControlCustomParameters(SecurityControlCustomParametersT&& value) {
107 SetSecurityControlCustomParameters(std::forward<SecurityControlCustomParametersT>(value));
108 return *this;
109 }
110 template <typename SecurityControlCustomParametersT = SecurityControlCustomParameter>
111 SecurityControlsConfiguration& AddSecurityControlCustomParameters(SecurityControlCustomParametersT&& value) {
112 m_securityControlCustomParametersHasBeenSet = true;
113 m_securityControlCustomParameters.emplace_back(std::forward<SecurityControlCustomParametersT>(value));
114 return *this;
115 }
117 private:
118 Aws::Vector<Aws::String> m_enabledSecurityControlIdentifiers;
119
120 Aws::Vector<Aws::String> m_disabledSecurityControlIdentifiers;
121
122 Aws::Vector<SecurityControlCustomParameter> m_securityControlCustomParameters;
123 bool m_enabledSecurityControlIdentifiersHasBeenSet = false;
124 bool m_disabledSecurityControlIdentifiersHasBeenSet = false;
125 bool m_securityControlCustomParametersHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace SecurityHub
130} // 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