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.Builder
builder()
HTTP response content type for this operationboolean
int
hashCode()
headers()
Raw HTTP response; suitable for custom response parsingresult()
Success.int
HTTP 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:
contentType
in interfaceResponse
-
statusCode
public int statusCode()HTTP response status code for this operation- Specified by:
statusCode
in interfaceResponse
-
rawResponse
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponse
in 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
-