Class CfnConfigurationPolicy.PolicyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.securityhub.CfnConfigurationPolicy.PolicyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConfigurationPolicy.PolicyProperty>
- Enclosing interface:
CfnConfigurationPolicy.PolicyProperty
@Stability(Stable)
public static final class CfnConfigurationPolicy.PolicyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConfigurationPolicy.PolicyProperty>
A builder for
CfnConfigurationPolicy.PolicyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.securityHub
(IResolvable securityHub) Sets the value ofCfnConfigurationPolicy.PolicyProperty.getSecurityHub()
Sets the value ofCfnConfigurationPolicy.PolicyProperty.getSecurityHub()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
securityHub
@Stability(Stable) public CfnConfigurationPolicy.PolicyProperty.Builder securityHub(IResolvable securityHub) Sets the value ofCfnConfigurationPolicy.PolicyProperty.getSecurityHub()
- Parameters:
securityHub
- The AWS service that the configuration policy applies to.- Returns:
this
-
securityHub
@Stability(Stable) public CfnConfigurationPolicy.PolicyProperty.Builder securityHub(CfnConfigurationPolicy.SecurityHubPolicyProperty securityHub) Sets the value ofCfnConfigurationPolicy.PolicyProperty.getSecurityHub()
- Parameters:
securityHub
- The AWS service that the configuration policy applies to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConfigurationPolicy.PolicyProperty>
- Returns:
- a new instance of
CfnConfigurationPolicy.PolicyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-