Class SuccessfulPolicyResponseWithStatusCode

  • All Implemented Interfaces:
    Responses

    public class SuccessfulPolicyResponseWithStatusCode
    extends java.lang.Object
    implements Responses
    • 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

      • 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.
      • 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 class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object