Interface CreatePolicyResponse.Builder

  • Method Details

    • policyId

      The service-generated id of the policy.

      Parameters:
      policyId - The service-generated id of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyArn

      CreatePolicyResponse.Builder policyArn(String policyArn)

      The Amazon Resource Name (ARN) of the policy.

      Parameters:
      policyArn - The Amazon Resource Name (ARN) of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyName

      CreatePolicyResponse.Builder policyName(String policyName)

      The name of the policy.

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

      CreatePolicyResponse.Builder policyDescription(String policyDescription)

      A description of the policy.

      Parameters:
      policyDescription - A description of the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • status

      The current status of the resource: DRAFT (unpublished, editable) or ACTIVE (published, in use).

      Parameters:
      status - The current status of the resource: DRAFT (unpublished, editable) or ACTIVE (published, in use).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • status

      The current status of the resource: DRAFT (unpublished, editable) or ACTIVE (published, in use).

      Parameters:
      status - The current status of the resource: DRAFT (unpublished, editable) or ACTIVE (published, in use).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • priority

      The priority of the resource. A lower number indicates a higher priority.

      Parameters:
      priority - The priority of the resource. A lower number indicates a higher priority.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedTemplateAndRuleList

      CreatePolicyResponse.Builder associatedTemplateAndRuleList(Collection<AssociatedTemplateOrRule> associatedTemplateAndRuleList)

      The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.

      Parameters:
      associatedTemplateAndRuleList - The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedTemplateAndRuleList

      CreatePolicyResponse.Builder associatedTemplateAndRuleList(AssociatedTemplateOrRule... associatedTemplateAndRuleList)

      The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.

      Parameters:
      associatedTemplateAndRuleList - The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedTemplateAndRuleList

      CreatePolicyResponse.Builder associatedTemplateAndRuleList(Consumer<AssociatedTemplateOrRule.Builder>... associatedTemplateAndRuleList)

      The templates and rules associated with the policy. For AWS WAF policies, this list contains 1 to 100 templates or rules, of which at most 2 can be templates. For AWS Shield Advanced policies, this list is empty.

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

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

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

      The version of the resource.

      Parameters:
      version - The version of the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updateToken

      CreatePolicyResponse.Builder updateToken(String updateToken)

      A token used for optimistic concurrency control. Each read and write returns an updateToken. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.

      Parameters:
      updateToken - A token used for optimistic concurrency control. Each read and write returns an updateToken. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • isSnapshot

      CreatePolicyResponse.Builder isSnapshot(Boolean isSnapshot)

      Specifies whether the resource is a snapshot of a published version.

      Parameters:
      isSnapshot - Specifies whether the resource is a snapshot of a published version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hasPublishedVersion

      CreatePolicyResponse.Builder hasPublishedVersion(Boolean hasPublishedVersion)

      Specifies whether a published version of the resource exists.

      Parameters:
      hasPublishedVersion - Specifies whether a published version of the resource exists.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firewallType

      CreatePolicyResponse.Builder firewallType(String firewallType)

      The firewall type associated with the resource.

      Parameters:
      firewallType - The firewall type associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • firewallType

      The firewall type associated with the resource.

      Parameters:
      firewallType - The firewall type associated with the resource.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • policyConfiguration

      CreatePolicyResponse.Builder policyConfiguration(PolicyConfiguration policyConfiguration)

      The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.

      Parameters:
      policyConfiguration - The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • policyConfiguration

      default CreatePolicyResponse.Builder policyConfiguration(Consumer<PolicyConfiguration.Builder> policyConfiguration)

      The configuration settings that control the policy's behavior, including remediation and firewall-type-specific settings.

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

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

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

      CreatePolicyResponse.Builder updatedAt(Instant updatedAt)

      The time when the resource was last updated.

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