AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SecurityHubPolicy.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/model/SecurityControlsConfiguration.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub
24{
25namespace Model
26{
27
42 {
43 public:
44 AWS_SECURITYHUB_API SecurityHubPolicy() = default;
45 AWS_SECURITYHUB_API SecurityHubPolicy(Aws::Utils::Json::JsonView jsonValue);
47 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
54 inline bool GetServiceEnabled() const { return m_serviceEnabled; }
55 inline bool ServiceEnabledHasBeenSet() const { return m_serviceEnabledHasBeenSet; }
56 inline void SetServiceEnabled(bool value) { m_serviceEnabledHasBeenSet = true; m_serviceEnabled = value; }
57 inline SecurityHubPolicy& WithServiceEnabled(bool value) { SetServiceEnabled(value); return *this;}
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) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers = std::forward<EnabledStandardIdentifiersT>(value); }
69 template<typename EnabledStandardIdentifiersT = Aws::Vector<Aws::String>>
70 SecurityHubPolicy& WithEnabledStandardIdentifiers(EnabledStandardIdentifiersT&& value) { SetEnabledStandardIdentifiers(std::forward<EnabledStandardIdentifiersT>(value)); return *this;}
71 template<typename EnabledStandardIdentifiersT = Aws::String>
72 SecurityHubPolicy& AddEnabledStandardIdentifiers(EnabledStandardIdentifiersT&& value) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers.emplace_back(std::forward<EnabledStandardIdentifiersT>(value)); return *this; }
74
76
81 inline const SecurityControlsConfiguration& GetSecurityControlsConfiguration() const { return m_securityControlsConfiguration; }
82 inline bool SecurityControlsConfigurationHasBeenSet() const { return m_securityControlsConfigurationHasBeenSet; }
83 template<typename SecurityControlsConfigurationT = SecurityControlsConfiguration>
84 void SetSecurityControlsConfiguration(SecurityControlsConfigurationT&& value) { m_securityControlsConfigurationHasBeenSet = true; m_securityControlsConfiguration = std::forward<SecurityControlsConfigurationT>(value); }
85 template<typename SecurityControlsConfigurationT = SecurityControlsConfiguration>
86 SecurityHubPolicy& WithSecurityControlsConfiguration(SecurityControlsConfigurationT&& value) { SetSecurityControlsConfiguration(std::forward<SecurityControlsConfigurationT>(value)); return *this;}
88 private:
89
90 bool m_serviceEnabled{false};
91 bool m_serviceEnabledHasBeenSet = false;
92
93 Aws::Vector<Aws::String> m_enabledStandardIdentifiers;
94 bool m_enabledStandardIdentifiersHasBeenSet = false;
95
96 SecurityControlsConfiguration m_securityControlsConfiguration;
97 bool m_securityControlsConfigurationHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace SecurityHub
102} // 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