AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SecurityHubPolicy.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/SecurityControlsConfiguration.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
38 public:
39 AWS_SECURITYHUB_API SecurityHubPolicy() = default;
40 AWS_SECURITYHUB_API SecurityHubPolicy(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline bool GetServiceEnabled() const { return m_serviceEnabled; }
49 inline bool ServiceEnabledHasBeenSet() const { return m_serviceEnabledHasBeenSet; }
50 inline void SetServiceEnabled(bool value) {
51 m_serviceEnabledHasBeenSet = true;
52 m_serviceEnabled = value;
53 }
55 SetServiceEnabled(value);
56 return *this;
57 }
59
61
65 inline const Aws::Vector<Aws::String>& GetEnabledStandardIdentifiers() const { return m_enabledStandardIdentifiers; }
66 inline bool EnabledStandardIdentifiersHasBeenSet() const { return m_enabledStandardIdentifiersHasBeenSet; }
67 template <typename EnabledStandardIdentifiersT = Aws::Vector<Aws::String>>
68 void SetEnabledStandardIdentifiers(EnabledStandardIdentifiersT&& value) {
69 m_enabledStandardIdentifiersHasBeenSet = true;
70 m_enabledStandardIdentifiers = std::forward<EnabledStandardIdentifiersT>(value);
71 }
72 template <typename EnabledStandardIdentifiersT = Aws::Vector<Aws::String>>
73 SecurityHubPolicy& WithEnabledStandardIdentifiers(EnabledStandardIdentifiersT&& value) {
74 SetEnabledStandardIdentifiers(std::forward<EnabledStandardIdentifiersT>(value));
75 return *this;
76 }
77 template <typename EnabledStandardIdentifiersT = Aws::String>
78 SecurityHubPolicy& AddEnabledStandardIdentifiers(EnabledStandardIdentifiersT&& value) {
79 m_enabledStandardIdentifiersHasBeenSet = true;
80 m_enabledStandardIdentifiers.emplace_back(std::forward<EnabledStandardIdentifiersT>(value));
81 return *this;
82 }
84
86
91 inline const SecurityControlsConfiguration& GetSecurityControlsConfiguration() const { return m_securityControlsConfiguration; }
92 inline bool SecurityControlsConfigurationHasBeenSet() const { return m_securityControlsConfigurationHasBeenSet; }
93 template <typename SecurityControlsConfigurationT = SecurityControlsConfiguration>
94 void SetSecurityControlsConfiguration(SecurityControlsConfigurationT&& value) {
95 m_securityControlsConfigurationHasBeenSet = true;
96 m_securityControlsConfiguration = std::forward<SecurityControlsConfigurationT>(value);
97 }
98 template <typename SecurityControlsConfigurationT = SecurityControlsConfiguration>
99 SecurityHubPolicy& WithSecurityControlsConfiguration(SecurityControlsConfigurationT&& value) {
100 SetSecurityControlsConfiguration(std::forward<SecurityControlsConfigurationT>(value));
101 return *this;
102 }
104 private:
105 bool m_serviceEnabled{false};
106
107 Aws::Vector<Aws::String> m_enabledStandardIdentifiers;
108
109 SecurityControlsConfiguration m_securityControlsConfiguration;
110 bool m_serviceEnabledHasBeenSet = false;
111 bool m_enabledStandardIdentifiersHasBeenSet = false;
112 bool m_securityControlsConfigurationHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace SecurityHub
117} // namespace Aws
SecurityHubPolicy & WithSecurityControlsConfiguration(SecurityControlsConfigurationT &&value)
SecurityHubPolicy & WithEnabledStandardIdentifiers(EnabledStandardIdentifiersT &&value)
AWS_SECURITYHUB_API SecurityHubPolicy()=default
void SetEnabledStandardIdentifiers(EnabledStandardIdentifiersT &&value)
AWS_SECURITYHUB_API SecurityHubPolicy(Aws::Utils::Json::JsonView jsonValue)
SecurityHubPolicy & AddEnabledStandardIdentifiers(EnabledStandardIdentifiersT &&value)
void SetSecurityControlsConfiguration(SecurityControlsConfigurationT &&value)
SecurityHubPolicy & WithServiceEnabled(bool value)
const Aws::Vector< Aws::String > & GetEnabledStandardIdentifiers() const
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const SecurityControlsConfiguration & GetSecurityControlsConfiguration() const
AWS_SECURITYHUB_API SecurityHubPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue