Interface CreateThreatModelRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateThreatModelRequest.Builder,,CreateThreatModelRequest> SdkBuilder<CreateThreatModelRequest.Builder,,CreateThreatModelRequest> SdkPojo,SdkRequest.Builder,SecurityAgentRequest.Builder
- Enclosing class:
CreateThreatModelRequest
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space to create the threat model in.default CreateThreatModelRequest.Builderassets(Consumer<Assets.Builder> assets) The assets to include in the threat model.The assets to include in the threat model.description(String description) A description of the application or system being threat modeled.default CreateThreatModelRequest.BuilderlogConfig(Consumer<CloudWatchLog.Builder> logConfig) The CloudWatch Logs configuration for the threat model.logConfig(CloudWatchLog logConfig) The CloudWatch Logs configuration for the threat model.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateThreatModelRequest.BuilderreportDestination(Consumer<ReportDestination.Builder> reportDestination) The destination for publishing scan reports to an integrated document provider.reportDestination(ReportDestination reportDestination) The destination for publishing scan reports to an integrated document provider.scopeDocs(Collection<DocumentInfo> scopeDocs) The scoped documents for the agent to focus on during threat modeling.scopeDocs(Consumer<DocumentInfo.Builder>... scopeDocs) The scoped documents for the agent to focus on during threat modeling.scopeDocs(DocumentInfo... scopeDocs) The scoped documents for the agent to focus on during threat modeling.serviceRole(String serviceRole) The IAM service role to use for the threat model.The title of the threat model.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.securityagent.model.SecurityAgentRequest.Builder
build
-
Method Details
-
title
The title of the threat model.
- Parameters:
title- The title of the threat model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
agentSpaceId
The unique identifier of the agent space to create the threat model in.
- Parameters:
agentSpaceId- The unique identifier of the agent space to create the threat model in.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the application or system being threat modeled.
- Parameters:
description- A description of the application or system being threat modeled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
The assets to include in the threat model.
- Parameters:
assets- The assets to include in the threat model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
The assets to include in the threat model.
This is a convenience method that creates an instance of theAssets.Builderavoiding the need to create one manually viaAssets.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toassets(Assets).- Parameters:
assets- a consumer that will call methods onAssets.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scopeDocs
The scoped documents for the agent to focus on during threat modeling.
- Parameters:
scopeDocs- The scoped documents for the agent to focus on during threat modeling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeDocs
The scoped documents for the agent to focus on during threat modeling.
- Parameters:
scopeDocs- The scoped documents for the agent to focus on during threat modeling.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scopeDocs
The scoped documents for the agent to focus on during threat modeling.
This is a convenience method that creates an instance of theDocumentInfo.Builderavoiding the need to create one manually viaDocumentInfo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toscopeDocs(List<DocumentInfo>).- Parameters:
scopeDocs- a consumer that will call methods onDocumentInfo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
serviceRole
The IAM service role to use for the threat model.
- Parameters:
serviceRole- The IAM service role to use for the threat model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
The CloudWatch Logs configuration for the threat model.
- Parameters:
logConfig- The CloudWatch Logs configuration for the threat model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
logConfig
The CloudWatch Logs configuration for the threat model.
This is a convenience method that creates an instance of theCloudWatchLog.Builderavoiding the need to create one manually viaCloudWatchLog.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tologConfig(CloudWatchLog).- Parameters:
logConfig- a consumer that will call methods onCloudWatchLog.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
reportDestination
The destination for publishing scan reports to an integrated document provider.
- Parameters:
reportDestination- The destination for publishing scan reports to an integrated document provider.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
reportDestination
default CreateThreatModelRequest.Builder reportDestination(Consumer<ReportDestination.Builder> reportDestination) The destination for publishing scan reports to an integrated document provider.
This is a convenience method that creates an instance of theReportDestination.Builderavoiding the need to create one manually viaReportDestination.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toreportDestination(ReportDestination).- Parameters:
reportDestination- a consumer that will call methods onReportDestination.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateThreatModelRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateThreatModelRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-