Class SuccessfulPolicyResponse
java.lang.Object
com.styra.opa.openapi.models.shared.SuccessfulPolicyResponse
SuccessfulPolicyResponse
Success. The server also returns 200 if the path refers to an undefined document. In this case, the response will not contain a result property.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final SuccessfulPolicyResponse.Builder
builder()
If decision logging is enabled, this field contains a string that uniquely identifies the decision.boolean
int
hashCode()
metrics()
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.Provenance information can be requested on individual API calls and are returned inline with the API response.result()
The base or virtual document referred to by the URL path.toString()
withDecisionId
(String decisionId) If decision logging is enabled, this field contains a string that uniquely identifies the decision.withDecisionId
(Optional<String> decisionId) If decision logging is enabled, this field contains a string that uniquely identifies the decision.withMetrics
(Map<String, Object> metrics) If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.withMetrics
(Optional<? extends Map<String, Object>> metrics) If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps.withProvenance
(Provenance provenance) Provenance information can be requested on individual API calls and are returned inline with the API response.withProvenance
(Optional<? extends Provenance> provenance) Provenance information can be requested on individual API calls and are returned inline with the API response.withResult
(Result result) The base or virtual document referred to by the URL path.withResult
(Optional<? extends Result> result) The base or virtual document referred to by the URL path.
-
Constructor Details
-
SuccessfulPolicyResponse
-
SuccessfulPolicyResponse
public SuccessfulPolicyResponse()
-
-
Method Details
-
result
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted. -
metrics
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps. -
decisionId
If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes. -
provenance
Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call. -
builder
-
withResult
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted. -
withMetrics
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps. -
withMetrics
If query metrics are enabled, this field contains query performance metrics collected during the parse, compile, and evaluation steps. -
withDecisionId
If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes. -
withDecisionId
If decision logging is enabled, this field contains a string that uniquely identifies the decision. The identifier will be included in the decision log event for this decision. Callers can use the identifier for correlation purposes. -
withProvenance
Provenance information can be requested on individual API calls and are returned inline with the API response. To obtain provenance information on an API call, specify the `provenance=true` query parameter when executing the API call. -
equals
-
hashCode
public int hashCode() -
toString
-