Interface ThreatModel.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ThreatModel.Builder,,ThreatModel> SdkBuilder<ThreatModel.Builder,,ThreatModel> SdkPojo
- Enclosing class:
ThreatModel
-
Method Summary
Modifier and TypeMethodDescriptionagentSpaceId(String agentSpaceId) The unique identifier of the agent space that contains the threat model.default ThreatModel.Builderassets(Consumer<Assets.Builder> assets) The assets included in the threat model.The assets included in the threat model.The date and time the threat model was created, in UTC format.description(String description) A description of the application or system being threat modeled.default ThreatModel.BuilderlogConfig(Consumer<CloudWatchLog.Builder> logConfig) The CloudWatch Logs configuration for the threat model.logConfig(CloudWatchLog logConfig) The CloudWatch Logs configuration for the threat model.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 used for the threat model.threatModelId(String threatModelId) The unique identifier of the threat model.The title of the threat model.The date and time the threat model was last updated, in UTC format.Methods 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, sdkFields
-
Method Details
-
threatModelId
The unique identifier of the threat model.
- Parameters:
threatModelId- The unique identifier 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 that contains the threat model.
- Parameters:
agentSpaceId- The unique identifier of the agent space that contains the threat model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
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 included in the threat model.
- Parameters:
assets- The assets included in the threat model.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assets
The assets included 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 used for the threat model.
- Parameters:
serviceRole- The IAM service role used 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:
-
createdAt
The date and time the threat model was created, in UTC format.
- Parameters:
createdAt- The date and time the threat model was created, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The date and time the threat model was last updated, in UTC format.
- Parameters:
updatedAt- The date and time the threat model was last updated, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-