Class BatchSuccessfulPolicyEvaluation
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.BatchSuccessfulPolicyEvaluation
-
public class BatchSuccessfulPolicyEvaluation extends java.lang.Object
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BatchSuccessfulPolicyEvaluation.Builder
-
Constructor Summary
Constructors Constructor Description BatchSuccessfulPolicyEvaluation()
BatchSuccessfulPolicyEvaluation(java.util.Optional<java.lang.String> batchDecisionId, java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.Object>> metrics, java.util.Optional<? extends java.util.Map<java.lang.String,SuccessfulPolicyResponse>> responses)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
batchDecisionId()
static BatchSuccessfulPolicyEvaluation.Builder
builder()
boolean
equals(java.lang.Object o)
int
hashCode()
java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>>
metrics()
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.java.util.Optional<java.util.Map<java.lang.String,SuccessfulPolicyResponse>>
responses()
java.lang.String
toString()
BatchSuccessfulPolicyEvaluation
withBatchDecisionId(java.lang.String batchDecisionId)
BatchSuccessfulPolicyEvaluation
withBatchDecisionId(java.util.Optional<java.lang.String> batchDecisionId)
BatchSuccessfulPolicyEvaluation
withMetrics(java.util.Map<java.lang.String,java.lang.Object> metrics)
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.BatchSuccessfulPolicyEvaluation
withMetrics(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.Object>> metrics)
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.BatchSuccessfulPolicyEvaluation
withResponses(java.util.Map<java.lang.String,SuccessfulPolicyResponse> responses)
BatchSuccessfulPolicyEvaluation
withResponses(java.util.Optional<? extends java.util.Map<java.lang.String,SuccessfulPolicyResponse>> responses)
-
-
-
Constructor Detail
-
BatchSuccessfulPolicyEvaluation
public BatchSuccessfulPolicyEvaluation(java.util.Optional<java.lang.String> batchDecisionId, java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.Object>> metrics, java.util.Optional<? extends java.util.Map<java.lang.String,SuccessfulPolicyResponse>> responses)
-
BatchSuccessfulPolicyEvaluation
public BatchSuccessfulPolicyEvaluation()
-
-
Method Detail
-
batchDecisionId
public java.util.Optional<java.lang.String> batchDecisionId()
-
metrics
public java.util.Optional<java.util.Map<java.lang.String,java.lang.Object>> metrics()
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.
-
responses
public java.util.Optional<java.util.Map<java.lang.String,SuccessfulPolicyResponse>> responses()
-
builder
public static final BatchSuccessfulPolicyEvaluation.Builder builder()
-
withBatchDecisionId
public BatchSuccessfulPolicyEvaluation withBatchDecisionId(java.lang.String batchDecisionId)
-
withBatchDecisionId
public BatchSuccessfulPolicyEvaluation withBatchDecisionId(java.util.Optional<java.lang.String> batchDecisionId)
-
withMetrics
public BatchSuccessfulPolicyEvaluation withMetrics(java.util.Map<java.lang.String,java.lang.Object> metrics)
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.
-
withMetrics
public BatchSuccessfulPolicyEvaluation withMetrics(java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.Object>> metrics)
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.
-
withResponses
public BatchSuccessfulPolicyEvaluation withResponses(java.util.Map<java.lang.String,SuccessfulPolicyResponse> responses)
-
withResponses
public BatchSuccessfulPolicyEvaluation withResponses(java.util.Optional<? extends java.util.Map<java.lang.String,SuccessfulPolicyResponse>> responses)
-
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
-
-