Class ExecuteDefaultPolicyWithInputResponse
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecuteDefaultPolicyWithInputResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecuteDefaultPolicyWithInputResponse.Builder
-
Constructor Summary
Constructors Constructor Description ExecuteDefaultPolicyWithInputResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExecuteDefaultPolicyWithInputResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends Result> result, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ExecuteDefaultPolicyWithInputResponse.Builder
builder()
java.lang.String
contentType()
HTTP response content type for this operationboolean
equals(java.lang.Object o)
int
hashCode()
java.util.Map<java.lang.String,java.util.List<java.lang.String>>
headers()
java.net.http.HttpResponse<java.io.InputStream>
rawResponse()
Raw HTTP response; suitable for custom response parsingjava.util.Optional<Result>
result()
Success.int
statusCode()
HTTP response status code for this operationjava.lang.String
toString()
ExecuteDefaultPolicyWithInputResponse
withContentType(java.lang.String contentType)
HTTP response content type for this operationExecuteDefaultPolicyWithInputResponse
withHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExecuteDefaultPolicyWithInputResponse
withRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsingExecuteDefaultPolicyWithInputResponse
withResult(Result result)
Success.ExecuteDefaultPolicyWithInputResponse
withResult(java.util.Optional<? extends Result> result)
Success.ExecuteDefaultPolicyWithInputResponse
withStatusCode(int statusCode)
HTTP response status code for this operation
-
-
-
Constructor Detail
-
ExecuteDefaultPolicyWithInputResponse
public ExecuteDefaultPolicyWithInputResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends Result> result, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
ExecuteDefaultPolicyWithInputResponse
public ExecuteDefaultPolicyWithInputResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
-
Method Detail
-
contentType
public java.lang.String 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
public java.net.http.HttpResponse<java.io.InputStream> rawResponse()
Raw HTTP response; suitable for custom response parsing- Specified by:
rawResponse
in interfaceResponse
-
result
public java.util.Optional<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 java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
-
builder
public static final ExecuteDefaultPolicyWithInputResponse.Builder builder()
-
withContentType
public ExecuteDefaultPolicyWithInputResponse withContentType(java.lang.String contentType)
HTTP response content type for this operation
-
withStatusCode
public ExecuteDefaultPolicyWithInputResponse withStatusCode(int statusCode)
HTTP response status code for this operation
-
withRawResponse
public ExecuteDefaultPolicyWithInputResponse withRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
withResult
public ExecuteDefaultPolicyWithInputResponse withResult(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.
-
withResult
public ExecuteDefaultPolicyWithInputResponse withResult(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.
-
withHeaders
public ExecuteDefaultPolicyWithInputResponse withHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-