Interface CreateAnalyzerRequest.Builder
-
- All Superinterfaces:
AccessAnalyzerRequest.Builder,AwsRequest.Builder,Buildable,CopyableBuilder<CreateAnalyzerRequest.Builder,CreateAnalyzerRequest>,SdkBuilder<CreateAnalyzerRequest.Builder,CreateAnalyzerRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateAnalyzerRequest
public static interface CreateAnalyzerRequest.Builder extends AccessAnalyzerRequest.Builder, SdkPojo, CopyableBuilder<CreateAnalyzerRequest.Builder,CreateAnalyzerRequest>
-
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
analyzerName
CreateAnalyzerRequest.Builder analyzerName(String analyzerName)
The name of the analyzer to create.
- Parameters:
analyzerName- The name of the analyzer to create.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
CreateAnalyzerRequest.Builder type(String type)
The type of analyzer to create. Only
ACCOUNT,ORGANIZATION,ACCOUNT_UNUSED_ACCESS, andORGANIZTAION_UNUSED_ACCESSanalyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.- Parameters:
type- The type of analyzer to create. OnlyACCOUNT,ORGANIZATION,ACCOUNT_UNUSED_ACCESS, andORGANIZTAION_UNUSED_ACCESSanalyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Type,Type
-
type
CreateAnalyzerRequest.Builder type(Type type)
The type of analyzer to create. Only
ACCOUNT,ORGANIZATION,ACCOUNT_UNUSED_ACCESS, andORGANIZTAION_UNUSED_ACCESSanalyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.- Parameters:
type- The type of analyzer to create. OnlyACCOUNT,ORGANIZATION,ACCOUNT_UNUSED_ACCESS, andORGANIZTAION_UNUSED_ACCESSanalyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Type,Type
-
archiveRules
CreateAnalyzerRequest.Builder archiveRules(Collection<InlineArchiveRule> archiveRules)
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
- Parameters:
archiveRules- Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archiveRules
CreateAnalyzerRequest.Builder archiveRules(InlineArchiveRule... archiveRules)
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
- Parameters:
archiveRules- Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
archiveRules
CreateAnalyzerRequest.Builder archiveRules(Consumer<InlineArchiveRule.Builder>... archiveRules)
Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.
This is a convenience method that creates an instance of theInlineArchiveRule.Builderavoiding the need to create one manually viaInlineArchiveRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#archiveRules(List.) - Parameters:
archiveRules- a consumer that will call methods onInlineArchiveRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#archiveRules(java.util.Collection)
-
tags
CreateAnalyzerRequest.Builder tags(Map<String,String> tags)
An array of key-value pairs to apply to the analyzer.
- Parameters:
tags- An array of key-value pairs to apply to the analyzer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
CreateAnalyzerRequest.Builder clientToken(String clientToken)
A client token.
- Parameters:
clientToken- A client token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
CreateAnalyzerRequest.Builder configuration(AnalyzerConfiguration configuration)
Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an external access analyzer, this field is not used.
- Parameters:
configuration- Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an external access analyzer, this field is not used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default CreateAnalyzerRequest.Builder configuration(Consumer<AnalyzerConfiguration.Builder> configuration)
Specifies the configuration of the analyzer. If the analyzer is an unused access analyzer, the specified scope of unused access is used for the configuration. If the analyzer is an external access analyzer, this field is not used.
This is a convenience method that creates an instance of theAnalyzerConfiguration.Builderavoiding the need to create one manually viaAnalyzerConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toconfiguration(AnalyzerConfiguration).- Parameters:
configuration- a consumer that will call methods onAnalyzerConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
configuration(AnalyzerConfiguration)
-
overrideConfiguration
CreateAnalyzerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateAnalyzerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-