Interface UpdatePolicyRequest.Builder

  • Method Details

    • policyIdentifier

      UpdatePolicyRequest.Builder policyIdentifier(String policyIdentifier)

      The identifier of the policy. This is the policy's Amazon Resource Name (ARN).

      Parameters:
      policyIdentifier - The identifier of the policy. This is the policy's Amazon Resource Name (ARN).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • updateToken

      UpdatePolicyRequest.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.
    • policyDescription

      UpdatePolicyRequest.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.
    • 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

      UpdatePolicyRequest.Builder associatedTemplateAndRuleList(Collection<TemplateOrRuleReference> associatedTemplateAndRuleList)

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

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

      UpdatePolicyRequest.Builder associatedTemplateAndRuleList(TemplateOrRuleReference... associatedTemplateAndRuleList)

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

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

      UpdatePolicyRequest.Builder associatedTemplateAndRuleList(Consumer<TemplateOrRuleReference.Builder>... associatedTemplateAndRuleList)

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

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

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

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

      UpdatePolicyRequest.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 UpdatePolicyRequest.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:
    • isPublished

      UpdatePolicyRequest.Builder isPublished(Boolean isPublished)

      Specifies whether to publish the resource. When true, the resource is saved in published ( ACTIVE) state. When false, it is saved as a draft (DRAFT).

      Parameters:
      isPublished - Specifies whether to publish the resource. When true, the resource is saved in published (ACTIVE) state. When false, it is saved as a draft (DRAFT).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • clientToken

      UpdatePolicyRequest.Builder clientToken(String clientToken)

      A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.

      Parameters:
      clientToken - A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • overrideConfiguration

      UpdatePolicyRequest.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.