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