Class ExecuteDefaultPolicyWithInputResponse.Builder
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse.Builder
-
- Enclosing class:
- ExecuteDefaultPolicyWithInputResponse
public static final class ExecuteDefaultPolicyWithInputResponse.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecuteDefaultPolicyWithInputResponse
build()
ExecuteDefaultPolicyWithInputResponse.Builder
contentType(java.lang.String contentType)
HTTP response content type for this operationExecuteDefaultPolicyWithInputResponse.Builder
headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExecuteDefaultPolicyWithInputResponse.Builder
rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsingExecuteDefaultPolicyWithInputResponse.Builder
result(Result result)
Success.ExecuteDefaultPolicyWithInputResponse.Builder
result(java.util.Optional<? extends Result> result)
Success.ExecuteDefaultPolicyWithInputResponse.Builder
statusCode(int statusCode)
HTTP response status code for this operation
-
-
-
Method Detail
-
contentType
public ExecuteDefaultPolicyWithInputResponse.Builder contentType(java.lang.String contentType)
HTTP response content type for this operation
-
statusCode
public ExecuteDefaultPolicyWithInputResponse.Builder statusCode(int statusCode)
HTTP response status code for this operation
-
rawResponse
public ExecuteDefaultPolicyWithInputResponse.Builder rawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
result
public ExecuteDefaultPolicyWithInputResponse.Builder result(Result result)
Success. Evaluating the default policy has the same response behavior as a successful policy evaluation, but with only the result as the response.
-
result
public ExecuteDefaultPolicyWithInputResponse.Builder result(java.util.Optional<? extends Result> result)
Success. Evaluating the default policy has the same response behavior as a successful policy evaluation, but with only the result as the response.
-
headers
public ExecuteDefaultPolicyWithInputResponse.Builder headers(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
build
public ExecuteDefaultPolicyWithInputResponse build()
-
-