Class ResponseValidationPolicyBuilder

java.lang.Object
com.azure.storage.common.policy.ResponseValidationPolicyBuilder

public class ResponseValidationPolicyBuilder extends Object
Builder for a policy to do validation of general response behavior.
  • Constructor Details

  • Method Details

    • build

      public com.azure.core.http.policy.HttpPipelinePolicy build()
      Builds the policy described by this builder.
      Returns:
      The policy.
    • addOptionalEcho

      @Deprecated public ResponseValidationPolicyBuilder addOptionalEcho(String headerName)
      Deprecated.
      Fluently applies an optional validation to this policy where, if the response contains the given header, asserts its value is an echo of the value provided in the request.
      Parameters:
      headerName - The header to validate.
      Returns:
      This policy.
    • addOptionalEcho

      public ResponseValidationPolicyBuilder addOptionalEcho(com.azure.core.http.HttpHeaderName headerName)
      Fluently applies an optional validation to this policy where, if the response contains the given header, asserts its value is an echo of the value provided in the request.
      Parameters:
      headerName - The header to validate.
      Returns:
      This policy.