Class SuccessfulPolicyResponseWithStatusCode
- java.lang.Object
-
- com.styra.opa.openapi.models.shared.SuccessfulPolicyResponseWithStatusCode
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SuccessfulPolicyResponseWithStatusCode.Builder
-
Constructor Summary
Constructors Constructor Description SuccessfulPolicyResponseWithStatusCode()
SuccessfulPolicyResponseWithStatusCode(java.util.Optional<java.lang.String> httpStatusCode, java.util.Optional<? extends Result> result, java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.Object>> metrics, java.util.Optional<java.lang.String> decisionId, java.util.Optional<? extends Provenance> provenance)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SuccessfulPolicyResponseWithStatusCode.Builder
builder()
java.util.Optional<java.lang.String>
decisionId()
If decision logging is enabled, this field contains a string that uniquely identifies the decision.boolean
equals(java.lang.Object o)
int
hashCode()
java.lang.String
httpStatusCode()
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<Provenance>
provenance()
Provenance information can be requested on individual API calls and are returned inline with the API response.java.util.Optional<Result>
result()
The base or virtual document referred to by the URL path.java.lang.String
toString()
SuccessfulPolicyResponseWithStatusCode
withDecisionId(java.lang.String decisionId)
If decision logging is enabled, this field contains a string that uniquely identifies the decision.SuccessfulPolicyResponseWithStatusCode
withDecisionId(java.util.Optional<java.lang.String> decisionId)
If decision logging is enabled, this field contains a string that uniquely identifies the decision.SuccessfulPolicyResponseWithStatusCode
withHttpStatusCode(java.lang.String httpStatusCode)
SuccessfulPolicyResponseWithStatusCode
withHttpStatusCode(java.util.Optional<java.lang.String> httpStatusCode)
SuccessfulPolicyResponseWithStatusCode
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.SuccessfulPolicyResponseWithStatusCode
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.SuccessfulPolicyResponseWithStatusCode
withProvenance(Provenance provenance)
Provenance information can be requested on individual API calls and are returned inline with the API response.SuccessfulPolicyResponseWithStatusCode
withProvenance(java.util.Optional<? extends Provenance> provenance)
Provenance information can be requested on individual API calls and are returned inline with the API response.SuccessfulPolicyResponseWithStatusCode
withResult(Result result)
The base or virtual document referred to by the URL path.SuccessfulPolicyResponseWithStatusCode
withResult(java.util.Optional<? extends Result> result)
The base or virtual document referred to by the URL path.
-
-
-
Constructor Detail
-
SuccessfulPolicyResponseWithStatusCode
public SuccessfulPolicyResponseWithStatusCode(java.util.Optional<java.lang.String> httpStatusCode, java.util.Optional<? extends Result> result, java.util.Optional<? extends java.util.Map<java.lang.String,java.lang.Object>> metrics, java.util.Optional<java.lang.String> decisionId, java.util.Optional<? extends Provenance> provenance)
-
SuccessfulPolicyResponseWithStatusCode
public SuccessfulPolicyResponseWithStatusCode()
-
-
Method Detail
-
httpStatusCode
public java.lang.String httpStatusCode()
- Specified by:
httpStatusCode
in interfaceResponses
-
result
public java.util.Optional<Result> result()
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.
-
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.
-
decisionId
public java.util.Optional<java.lang.String> 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
public java.util.Optional<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.
-
builder
public static final SuccessfulPolicyResponseWithStatusCode.Builder builder()
-
withHttpStatusCode
public SuccessfulPolicyResponseWithStatusCode withHttpStatusCode(java.lang.String httpStatusCode)
-
withHttpStatusCode
public SuccessfulPolicyResponseWithStatusCode withHttpStatusCode(java.util.Optional<java.lang.String> httpStatusCode)
-
withResult
public SuccessfulPolicyResponseWithStatusCode withResult(Result result)
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.
-
withResult
public SuccessfulPolicyResponseWithStatusCode withResult(java.util.Optional<? extends Result> result)
The base or virtual document referred to by the URL path. If the path is undefined, this key will be omitted.
-
withMetrics
public SuccessfulPolicyResponseWithStatusCode 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 SuccessfulPolicyResponseWithStatusCode 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.
-
withDecisionId
public SuccessfulPolicyResponseWithStatusCode withDecisionId(java.lang.String 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.
-
withDecisionId
public SuccessfulPolicyResponseWithStatusCode withDecisionId(java.util.Optional<java.lang.String> 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.
-
withProvenance
public SuccessfulPolicyResponseWithStatusCode withProvenance(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.
-
withProvenance
public SuccessfulPolicyResponseWithStatusCode withProvenance(java.util.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
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
-
-