Class ExecutePolicyWithInputResponse.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecutePolicyWithInputResponse.Builder
-
- Enclosing class:
- ExecutePolicyWithInputResponse
public static final class ExecutePolicyWithInputResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutePolicyWithInputResponse
build()
ExecutePolicyWithInputResponse.Builder
contentType(java.lang.String contentType)
HTTP response content type for this operationExecutePolicyWithInputResponse.Builder
headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExecutePolicyWithInputResponse.Builder
rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsingExecutePolicyWithInputResponse.Builder
statusCode(int statusCode)
HTTP response status code for this operationExecutePolicyWithInputResponse.Builder
successfulPolicyResponse(SuccessfulPolicyResponse successfulPolicyResponse)
Success.ExecutePolicyWithInputResponse.Builder
successfulPolicyResponse(java.util.Optional<? extends SuccessfulPolicyResponse> successfulPolicyResponse)
Success.
-
-
-
Method Detail
-
contentType
public ExecutePolicyWithInputResponse.Builder contentType(java.lang.String contentType)
HTTP response content type for this operation
-
statusCode
public ExecutePolicyWithInputResponse.Builder statusCode(int statusCode)
HTTP response status code for this operation
-
rawResponse
public ExecutePolicyWithInputResponse.Builder rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
successfulPolicyResponse
public ExecutePolicyWithInputResponse.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 ExecutePolicyWithInputResponse.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 ExecutePolicyWithInputResponse.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
build
public ExecutePolicyWithInputResponse build()
-
-