Class ExecuteDefaultPolicyWithInputResponse
java.lang.Object
com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionExecuteDefaultPolicyWithInputResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Map<String, List<String>> headers) ExecuteDefaultPolicyWithInputResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Optional<? extends Result> result, Map<String, List<String>> headers) -
Method Summary
Modifier and TypeMethodDescriptionstatic final ExecuteDefaultPolicyWithInputResponse.Builderbuilder()HTTP response content type for this operationbooleaninthashCode()headers()Raw HTTP response; suitable for custom response parsingresult()Success.intHTTP response status code for this operationtoString()withContentType(String contentType) HTTP response content type for this operationwithHeaders(Map<String, List<String>> headers) withRawResponse(HttpResponse<InputStream> rawResponse) Raw HTTP response; suitable for custom response parsingwithResult(Result result) Success.withResult(Optional<? extends Result> result) Success.withStatusCode(int statusCode) HTTP response status code for this operation
-
Constructor Details
-
ExecuteDefaultPolicyWithInputResponse
public ExecuteDefaultPolicyWithInputResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Optional<? extends Result> result, Map<String, List<String>> headers) -
ExecuteDefaultPolicyWithInputResponse
public ExecuteDefaultPolicyWithInputResponse(String contentType, int statusCode, HttpResponse<InputStream> rawResponse, Map<String, List<String>> headers)
-
-
Method Details
-
contentType
HTTP response content type for this operation- Specified by:
contentTypein interfaceResponse
-
statusCode
public int statusCode()HTTP response status code for this operation- Specified by:
statusCodein interfaceResponse
-
rawResponse
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponsein interfaceResponse
-
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
-
builder
-
withContentType
HTTP response content type for this operation -
withStatusCode
HTTP response status code for this operation -
withRawResponse
Raw HTTP response; suitable for custom response parsing -
withResult
Success. Evaluating the default policy has the same response behavior as a successful policy evaluation, but with only the result as the response. -
withHeaders
-
equals
-
hashCode
public int hashCode() -
toString
-