Interface Policy.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Policy.Builder,Policy>, SdkBuilder<Policy.Builder,Policy>, SdkPojo
Enclosing class:
Policy

public static interface Policy.Builder extends SdkPojo, CopyableBuilder<Policy.Builder,Policy>
  • Method Details

    • policySummary

      Policy.Builder policySummary(PolicySummary policySummary)

      A structure that contains additional details about the policy.

      Parameters:
      policySummary - A structure that contains additional details about the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policySummary

      default Policy.Builder policySummary(Consumer<PolicySummary.Builder> policySummary)

      A structure that contains additional details about the policy.

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

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

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

      Policy.Builder content(String content)

      The text content of the policy.

      Parameters:
      content - The text content of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.