Interface Threat.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Threat.Builder,,Threat> SdkBuilder<Threat.Builder,,Threat> SdkPojo
- Enclosing class:
Threat
-
Method Summary
Modifier and TypeMethodDescriptiondefault Threat.Builderanchor(Consumer<ThreatAnchorShape.Builder> anchor) The DFD element this threat is anchored to.anchor(ThreatAnchorShape anchor) The DFD element this threat is anchored to.Optional customer comment on the threat.The date and time the threat was created, in UTC format.Who created this threat.createdBy(ThreatActor createdBy) Who created this threat.evidence(Collection<ThreatEvidenceShape> evidence) The source code files supporting the threat.evidence(Consumer<ThreatEvidenceShape.Builder>... evidence) The source code files supporting the threat.evidence(ThreatEvidenceShape... evidence) The source code files supporting the threat.impactedAssets(String... impactedAssets) The specific assets affected by the threat.impactedAssets(Collection<String> impactedAssets) The specific assets affected by the threat.impactedGoal(String... impactedGoal) The security goals affected by the threat.impactedGoal(Collection<String> impactedGoal) The security goals affected by the threat.prerequisites(String prerequisites) The conditions required for the threat to be exploitable.recommendation(String recommendation) The recommended mitigation guidance for this threat.The severity level of the threat.severity(ThreatSeverity severity) The severity level of the threat.The natural-language threat statement.The current status of the threat.status(ThreatStatus status) The current status of the threat.stride(Collection<StrideCategory> stride) The STRIDE categories applicable to this threat.stride(StrideCategory... stride) The STRIDE categories applicable to this threat.strideWithStrings(String... stride) The STRIDE categories applicable to this threat.strideWithStrings(Collection<String> stride) The STRIDE categories applicable to this threat.threatAction(String threatAction) What the threat source can do.The unique identifier of the threat.threatImpact(String threatImpact) The direct consequence of the threat action.threatJobId(String threatJobId) The unique identifier of the threat model job that produced the threat.threatSource(String threatSource) The actor or origin of the threat.A short title summarizing the threat.The date and time the threat was last updated, in UTC format.Who last updated this threat.updatedBy(ThreatActor updatedBy) Who last updated this threat.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
-
threatId
The unique identifier of the threat.
- Parameters:
threatId- The unique identifier of the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threatJobId
The unique identifier of the threat model job that produced the threat.
- Parameters:
threatJobId- The unique identifier of the threat model job that produced the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
title
A short title summarizing the threat.
- Parameters:
title- A short title summarizing the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statement
The natural-language threat statement.
- Parameters:
statement- The natural-language threat statement.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
severity
The severity level of the threat.
- Parameters:
severity- The severity level of the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
severity
The severity level of the threat.
- Parameters:
severity- The severity level of the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the threat.
- Parameters:
status- The current status of the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the threat.
- Parameters:
status- The current status of the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
comments
Optional customer comment on the threat.
- Parameters:
comments- Optional customer comment on the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threatSource
The actor or origin of the threat.
- Parameters:
threatSource- The actor or origin of the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
prerequisites
The conditions required for the threat to be exploitable.
- Parameters:
prerequisites- The conditions required for the threat to be exploitable.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threatAction
What the threat source can do.
- Parameters:
threatAction- What the threat source can do.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
threatImpact
The direct consequence of the threat action.
- Parameters:
threatImpact- The direct consequence of the threat action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedGoal
The security goals affected by the threat.
- Parameters:
impactedGoal- The security goals affected by the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedGoal
The security goals affected by the threat.
- Parameters:
impactedGoal- The security goals affected by the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedAssets
The specific assets affected by the threat.
- Parameters:
impactedAssets- The specific assets affected by the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
impactedAssets
The specific assets affected by the threat.
- Parameters:
impactedAssets- The specific assets affected by the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anchor
The DFD element this threat is anchored to.
- Parameters:
anchor- The DFD element this threat is anchored to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
anchor
The DFD element this threat is anchored to.
This is a convenience method that creates an instance of theThreatAnchorShape.Builderavoiding the need to create one manually viaThreatAnchorShape.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toanchor(ThreatAnchorShape).- Parameters:
anchor- a consumer that will call methods onThreatAnchorShape.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
evidence
The source code files supporting the threat.
- Parameters:
evidence- The source code files supporting the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evidence
The source code files supporting the threat.
- Parameters:
evidence- The source code files supporting the threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evidence
The source code files supporting the threat.
This is a convenience method that creates an instance of theThreatEvidenceShape.Builderavoiding the need to create one manually viaThreatEvidenceShape.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toevidence(List<ThreatEvidenceShape>).- Parameters:
evidence- a consumer that will call methods onThreatEvidenceShape.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
strideWithStrings
The STRIDE categories applicable to this threat.
- Parameters:
stride- The STRIDE categories applicable to this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
strideWithStrings
The STRIDE categories applicable to this threat.
- Parameters:
stride- The STRIDE categories applicable to this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stride
The STRIDE categories applicable to this threat.
- Parameters:
stride- The STRIDE categories applicable to this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
stride
The STRIDE categories applicable to this threat.
- Parameters:
stride- The STRIDE categories applicable to this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendation
The recommended mitigation guidance for this threat.
- Parameters:
recommendation- The recommended mitigation guidance for this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdBy
Who created this threat.
- Parameters:
createdBy- Who created this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdBy
Who created this threat.
- Parameters:
createdBy- Who created this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updatedBy
Who last updated this threat.
- Parameters:
updatedBy- Who last updated this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
updatedBy
Who last updated this threat.
- Parameters:
updatedBy- Who last updated this threat.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
createdAt
The date and time the threat was created, in UTC format.
- Parameters:
createdAt- The date and time the threat 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 was last updated, in UTC format.
- Parameters:
updatedAt- The date and time the threat was last updated, in UTC format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-