Class CfnAnalyzerProps.Builder
java.lang.Object
software.amazon.awscdk.services.accessanalyzer.CfnAnalyzerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAnalyzerProps>
- Enclosing interface:
- CfnAnalyzerProps
@Stability(Stable)
public static final class CfnAnalyzerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAnalyzerProps>
A builder for
CfnAnalyzerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalyzerName(String analyzerName) Sets the value ofCfnAnalyzerProps.getAnalyzerName()archiveRules(List<? extends Object> archiveRules) Sets the value ofCfnAnalyzerProps.getArchiveRules()archiveRules(IResolvable archiveRules) Sets the value ofCfnAnalyzerProps.getArchiveRules()build()Builds the configured instance.Sets the value ofCfnAnalyzerProps.getTags()Sets the value ofCfnAnalyzerProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnAnalyzerProps.getType()- Parameters:
type- The type represents the zone of trust for the analyzer. This parameter is required. Allowed Values : ACCOUNT | ORGANIZATION- Returns:
this
-
analyzerName
Sets the value ofCfnAnalyzerProps.getAnalyzerName()- Parameters:
analyzerName- The name of the analyzer.- Returns:
this
-
archiveRules
Sets the value ofCfnAnalyzerProps.getArchiveRules()- Parameters:
archiveRules- Specifies the archive rules to add for the analyzer.- Returns:
this
-
archiveRules
@Stability(Stable) public CfnAnalyzerProps.Builder archiveRules(List<? extends Object> archiveRules) Sets the value ofCfnAnalyzerProps.getArchiveRules()- Parameters:
archiveRules- Specifies the archive rules to add for the analyzer.- Returns:
this
-
tags
Sets the value ofCfnAnalyzerProps.getTags()- Parameters:
tags- The tags to apply to the analyzer.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAnalyzerProps>- Returns:
- a new instance of
CfnAnalyzerProps - Throws:
NullPointerException- if any required attribute was not provided
-