Interface CreateThreatRequest.Builder

  • Method Details

    • agentSpaceId

      CreateThreatRequest.Builder agentSpaceId(String agentSpaceId)

      The unique identifier of the agent space.

      Parameters:
      agentSpaceId - The unique identifier of the agent space.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • threatJobId

      CreateThreatRequest.Builder threatJobId(String threatJobId)

      The unique identifier of the threat model job the threat belongs to.

      Parameters:
      threatJobId - The unique identifier of the threat model job the threat belongs to.
      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

      CreateThreatRequest.Builder statement(String 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

      CreateThreatRequest.Builder severity(String 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:
    • comments

      CreateThreatRequest.Builder comments(String 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.
    • strideWithStrings

      CreateThreatRequest.Builder strideWithStrings(Collection<String> 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.
    • strideWithStrings

      CreateThreatRequest.Builder strideWithStrings(String... 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.
    • 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.
    • threatSource

      CreateThreatRequest.Builder threatSource(String 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

      CreateThreatRequest.Builder prerequisites(String 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

      CreateThreatRequest.Builder threatAction(String 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

      CreateThreatRequest.Builder threatImpact(String 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

      CreateThreatRequest.Builder impactedGoal(Collection<String> 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

      CreateThreatRequest.Builder impactedGoal(String... 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

      CreateThreatRequest.Builder impactedAssets(Collection<String> 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

      CreateThreatRequest.Builder impactedAssets(String... 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 the ThreatAnchorShape.Builder avoiding the need to create one manually via ThreatAnchorShape.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to anchor(ThreatAnchorShape).

      Parameters:
      anchor - a consumer that will call methods on ThreatAnchorShape.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 the ThreatEvidenceShape.Builder avoiding the need to create one manually via ThreatEvidenceShape.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to evidence(List<ThreatEvidenceShape>).

      Parameters:
      evidence - a consumer that will call methods on ThreatEvidenceShape.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • recommendation

      CreateThreatRequest.Builder recommendation(String 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.
    • overrideConfiguration

      CreateThreatRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.