Interface UpdatePolicyResponse.Builder

  • Method Details

    • policyId

      The unique identifier of the updated policy.

      Parameters:
      policyId - The unique identifier of the updated policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of the updated policy.

      Parameters:
      name - The name of the updated policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyEngineId

      UpdatePolicyResponse.Builder policyEngineId(String policyEngineId)

      The identifier of the policy engine managing the updated policy.

      Parameters:
      policyEngineId - The identifier of the policy engine managing the updated policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The updated Cedar policy statement.

      Parameters:
      definition - The updated Cedar policy statement.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • definition

      The updated Cedar policy statement.

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

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

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

      UpdatePolicyResponse.Builder description(String description)

      The updated description of the policy.

      Parameters:
      description - The updated description of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      UpdatePolicyResponse.Builder createdAt(Instant createdAt)

      The original creation timestamp of the policy.

      Parameters:
      createdAt - The original creation timestamp of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updatedAt

      UpdatePolicyResponse.Builder updatedAt(Instant updatedAt)

      The timestamp when the policy was last updated.

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

      UpdatePolicyResponse.Builder policyArn(String policyArn)

      The ARN of the updated policy.

      Parameters:
      policyArn - The ARN of the updated policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the updated policy.

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

      The current status of the updated policy.

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

      UpdatePolicyResponse.Builder statusReasons(Collection<String> statusReasons)

      Additional information about the update status.

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

      UpdatePolicyResponse.Builder statusReasons(String... statusReasons)

      Additional information about the update status.

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