Class SuccessfulPolicyResponseWithStatusCode
java.lang.Object
com.styra.opa.openapi.models.shared.SuccessfulPolicyResponseWithStatusCode
- All Implemented Interfaces:
Responses
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
-
Constructor Summary
ConstructorsConstructorDescriptionSuccessfulPolicyResponseWithStatusCode
(String httpStatusCode) SuccessfulPolicyResponseWithStatusCode
(String httpStatusCode, Optional<? extends Result> result, Optional<? extends Map<String, Object>> metrics, Optional<String> decisionId, Optional<? extends Provenance> provenance) -
Method Summary
Modifier and TypeMethodDescriptionstatic final SuccessfulPolicyResponseWithStatusCode.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.withHttpStatusCode
(String httpStatusCode) 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
-
SuccessfulPolicyResponseWithStatusCode
-
SuccessfulPolicyResponseWithStatusCode
-
-
Method Details
-
httpStatusCode
- Specified by:
httpStatusCode
in interfaceResponses
-
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
-
withHttpStatusCode
-
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
public SuccessfulPolicyResponseWithStatusCode 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. -
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
public SuccessfulPolicyResponseWithStatusCode withProvenance(Optional<? extends Provenance> 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. -
equals
-
hashCode
public int hashCode() -
toString
-