public class ResponseValidationPolicyBuilder extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ResponseValidationPolicyBuilder.ResponseValidationPolicy
Immutable policy for asserting validations on general responses.
|
| Constructor and Description |
|---|
ResponseValidationPolicyBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ResponseValidationPolicyBuilder |
addOptionalEcho(String 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.
|
com.azure.core.http.policy.HttpPipelinePolicy |
build()
Builds the policy described by this builder.
|
public com.azure.core.http.policy.HttpPipelinePolicy build()
public ResponseValidationPolicyBuilder addOptionalEcho(String headerName)
headerName - The header to validate.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.