Interface PolicyGeneration.Builder

  • Method Details

    • policyEngineId

      PolicyGeneration.Builder policyEngineId(String policyEngineId)

      The identifier of the policy engine associated with this generation request.

      Parameters:
      policyEngineId - The identifier of the policy engine associated with this generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyGenerationId

      PolicyGeneration.Builder policyGenerationId(String policyGenerationId)

      The unique identifier for this policy generation request.

      Parameters:
      policyGenerationId - The unique identifier for this policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The customer-assigned name for this policy generation request.

      Parameters:
      name - The customer-assigned name for this policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyGenerationArn

      PolicyGeneration.Builder policyGenerationArn(String policyGenerationArn)

      The ARN of this policy generation request.

      Parameters:
      policyGenerationArn - The ARN of this policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      PolicyGeneration.Builder resource(Resource resource)

      The resource information associated with this policy generation.

      Parameters:
      resource - The resource information associated with this policy generation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • resource

      default PolicyGeneration.Builder resource(Consumer<Resource.Builder> resource)

      The resource information associated with this policy generation.

      This is a convenience method that creates an instance of the Resource.Builder avoiding the need to create one manually via Resource.builder().

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

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

      PolicyGeneration.Builder createdAt(Instant createdAt)

      The timestamp when this policy generation request was created.

      Parameters:
      createdAt - The timestamp when this policy generation request was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      PolicyGeneration.Builder updatedAt(Instant updatedAt)

      The timestamp when this policy generation was last updated.

      Parameters:
      updatedAt - The timestamp when this policy generation was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of this policy generation request.

      Parameters:
      status - The current status of this policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of this policy generation request.

      Parameters:
      status - The current status of this policy generation request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • statusReasons

      PolicyGeneration.Builder statusReasons(Collection<String> statusReasons)

      Additional information about the generation status.

      Parameters:
      statusReasons - Additional information about the generation status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • statusReasons

      PolicyGeneration.Builder statusReasons(String... statusReasons)

      Additional information about the generation status.

      Parameters:
      statusReasons - Additional information about the generation status.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • findings

      PolicyGeneration.Builder findings(String findings)

      Findings and insights from this policy generation process.

      Parameters:
      findings - Findings and insights from this policy generation process.
      Returns:
      Returns a reference to this object so that method calls can be chained together.