Class ExecuteBatchPolicyWithInputResponse
- java.lang.Object
-
- com.styra.opa.openapi.models.operations.ExecuteBatchPolicyWithInputResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExecuteBatchPolicyWithInputResponse.Builder
-
Constructor Summary
Constructors Constructor Description ExecuteBatchPolicyWithInputResponse(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)
ExecuteBatchPolicyWithInputResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends BatchSuccessfulPolicyEvaluation> batchSuccessfulPolicyEvaluation, java.util.Optional<? extends BatchMixedResults> batchMixedResults, 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 java.util.Optional<BatchMixedResults>
batchMixedResults()
Mixed success and failures.java.util.Optional<BatchSuccessfulPolicyEvaluation>
batchSuccessfulPolicyEvaluation()
All batched policy executions succeeded.static ExecuteBatchPolicyWithInputResponse.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 parsingint
statusCode()
HTTP response status code for this operationjava.lang.String
toString()
ExecuteBatchPolicyWithInputResponse
withBatchMixedResults(BatchMixedResults batchMixedResults)
Mixed success and failures.ExecuteBatchPolicyWithInputResponse
withBatchMixedResults(java.util.Optional<? extends BatchMixedResults> batchMixedResults)
Mixed success and failures.ExecuteBatchPolicyWithInputResponse
withBatchSuccessfulPolicyEvaluation(BatchSuccessfulPolicyEvaluation batchSuccessfulPolicyEvaluation)
All batched policy executions succeeded.ExecuteBatchPolicyWithInputResponse
withBatchSuccessfulPolicyEvaluation(java.util.Optional<? extends BatchSuccessfulPolicyEvaluation> batchSuccessfulPolicyEvaluation)
All batched policy executions succeeded.ExecuteBatchPolicyWithInputResponse
withContentType(java.lang.String contentType)
HTTP response content type for this operationExecuteBatchPolicyWithInputResponse
withHeaders(java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
ExecuteBatchPolicyWithInputResponse
withRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsingExecuteBatchPolicyWithInputResponse
withStatusCode(int statusCode)
HTTP response status code for this operation
-
-
-
Constructor Detail
-
ExecuteBatchPolicyWithInputResponse
public ExecuteBatchPolicyWithInputResponse(java.lang.String contentType, int statusCode, java.net.http.HttpResponse<java.io.InputStream> rawResponse, java.util.Optional<? extends BatchSuccessfulPolicyEvaluation> batchSuccessfulPolicyEvaluation, java.util.Optional<? extends BatchMixedResults> batchMixedResults, java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers)
-
ExecuteBatchPolicyWithInputResponse
public ExecuteBatchPolicyWithInputResponse(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
-
batchSuccessfulPolicyEvaluation
public java.util.Optional<BatchSuccessfulPolicyEvaluation> batchSuccessfulPolicyEvaluation()
All batched policy executions succeeded. The server also returns 200 if the path refers to an undefined document. In this case, responses will be empty.
-
batchMixedResults
public java.util.Optional<BatchMixedResults> batchMixedResults()
Mixed success and failures.
-
headers
public java.util.Map<java.lang.String,java.util.List<java.lang.String>> headers()
-
builder
public static final ExecuteBatchPolicyWithInputResponse.Builder builder()
-
withContentType
public ExecuteBatchPolicyWithInputResponse withContentType(java.lang.String contentType)
HTTP response content type for this operation
-
withStatusCode
public ExecuteBatchPolicyWithInputResponse withStatusCode(int statusCode)
HTTP response status code for this operation
-
withRawResponse
public ExecuteBatchPolicyWithInputResponse withRawResponse(java.net.http.HttpResponse<java.io.InputStream> rawResponse)
Raw HTTP response; suitable for custom response parsing
-
withBatchSuccessfulPolicyEvaluation
public ExecuteBatchPolicyWithInputResponse withBatchSuccessfulPolicyEvaluation(BatchSuccessfulPolicyEvaluation batchSuccessfulPolicyEvaluation)
All batched policy executions succeeded. The server also returns 200 if the path refers to an undefined document. In this case, responses will be empty.
-
withBatchSuccessfulPolicyEvaluation
public ExecuteBatchPolicyWithInputResponse withBatchSuccessfulPolicyEvaluation(java.util.Optional<? extends BatchSuccessfulPolicyEvaluation> batchSuccessfulPolicyEvaluation)
All batched policy executions succeeded. The server also returns 200 if the path refers to an undefined document. In this case, responses will be empty.
-
withBatchMixedResults
public ExecuteBatchPolicyWithInputResponse withBatchMixedResults(BatchMixedResults batchMixedResults)
Mixed success and failures.
-
withBatchMixedResults
public ExecuteBatchPolicyWithInputResponse withBatchMixedResults(java.util.Optional<? extends BatchMixedResults> batchMixedResults)
Mixed success and failures.
-
withHeaders
public ExecuteBatchPolicyWithInputResponse 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
-
-