Class ExecutePolicyResponse.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecutePolicyResponse.Builder
-
- Enclosing class:
- ExecutePolicyResponse
public static final class ExecutePolicyResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutePolicyResponse
build()
ExecutePolicyResponse.Builder
contentType(java.lang.String contentType)
HTTP response content type for this operationExecutePolicyResponse.Builder
headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExecutePolicyResponse.Builder
rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsingExecutePolicyResponse.Builder
statusCode(int statusCode)
HTTP response status code for this operationExecutePolicyResponse.Builder
successfulPolicyResponse(SuccessfulPolicyResponse successfulPolicyResponse)
Success.ExecutePolicyResponse.Builder
successfulPolicyResponse(java.util.Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse)
Success.
-
-
-
Method Detail
-
contentType
public ExecutePolicyResponse.Builder contentType(java.lang.String contentType)
HTTP response content type for this operation
-
statusCode
public ExecutePolicyResponse.Builder statusCode(int statusCode)
HTTP response status code for this operation
-
rawResponse
public ExecutePolicyResponse.Builder rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
successfulPolicyResponse
public ExecutePolicyResponse.Builder successfulPolicyResponse(SuccessfulPolicyResponse successfulPolicyResponse)
Success. The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property.
-
successfulPolicyResponse
public ExecutePolicyResponse.Builder successfulPolicyResponse(java.util.Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse)
Success. The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property.
-
headers
public ExecutePolicyResponse.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
build
public ExecutePolicyResponse build()
-
-