AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEnabledStandardIdentifiers(const Aws::Vector<Aws::String>& value) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers = value; }
68 inline void SetEnabledStandardIdentifiers(Aws::Vector<Aws::String>&& value) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers = std::move(value); }
71 inline SecurityHubPolicy& AddEnabledStandardIdentifiers(const Aws::String& value) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers.push_back(value); return *this; }
72 inline SecurityHubPolicy& AddEnabledStandardIdentifiers(Aws::String&& value) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers.push_back(std::move(value)); return *this; }
73 inline SecurityHubPolicy& AddEnabledStandardIdentifiers(const char* value) { m_enabledStandardIdentifiersHasBeenSet = true; m_enabledStandardIdentifiers.push_back(value); return *this; }
75
77
82 inline const SecurityControlsConfiguration& GetSecurityControlsConfiguration() const{ return m_securityControlsConfiguration; }
83 inline bool SecurityControlsConfigurationHasBeenSet() const { return m_securityControlsConfigurationHasBeenSet; }
84 inline void SetSecurityControlsConfiguration(const SecurityControlsConfiguration& value) { m_securityControlsConfigurationHasBeenSet = true; m_securityControlsConfiguration = value; }
85 inline void SetSecurityControlsConfiguration(SecurityControlsConfiguration&& value) { m_securityControlsConfigurationHasBeenSet = true; m_securityControlsConfiguration = std::move(value); }
89 private:
90
91 bool m_serviceEnabled;
92 bool m_serviceEnabledHasBeenSet = false;
93
94 Aws::Vector<Aws::String> m_enabledStandardIdentifiers;
95 bool m_enabledStandardIdentifiersHasBeenSet = false;
96
97 SecurityControlsConfiguration m_securityControlsConfiguration;
98 bool m_securityControlsConfigurationHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace SecurityHub
103} // namespace Aws
SecurityHubPolicy & AddEnabledStandardIdentifiers(Aws::String &&value)
void SetSecurityControlsConfiguration(const SecurityControlsConfiguration &value)
void SetSecurityControlsConfiguration(SecurityControlsConfiguration &&value)
SecurityHubPolicy & AddEnabledStandardIdentifiers(const Aws::String &value)
SecurityHubPolicy & WithSecurityControlsConfiguration(SecurityControlsConfiguration &&value)
AWS_SECURITYHUB_API SecurityHubPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetEnabledStandardIdentifiers(Aws::Vector< Aws::String > &&value)
SecurityHubPolicy & AddEnabledStandardIdentifiers(const char *value)
SecurityHubPolicy & WithEnabledStandardIdentifiers(Aws::Vector< Aws::String > &&value)
SecurityHubPolicy & WithEnabledStandardIdentifiers(const Aws::Vector< Aws::String > &value)
SecurityHubPolicy & WithServiceEnabled(bool value)
void SetEnabledStandardIdentifiers(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetEnabledStandardIdentifiers() const
SecurityHubPolicy & WithSecurityControlsConfiguration(const SecurityControlsConfiguration &value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const SecurityControlsConfiguration & GetSecurityControlsConfiguration() const
AWS_SECURITYHUB_API SecurityHubPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue