Class ExternalEvaluationEndpointInvocationResult

java.lang.Object
com.azure.resourcemanager.resources.models.ExternalEvaluationEndpointInvocationResult
All Implemented Interfaces:
com.azure.json.JsonSerializable<ExternalEvaluationEndpointInvocationResult>

public final class ExternalEvaluationEndpointInvocationResult extends Object implements com.azure.json.JsonSerializable<ExternalEvaluationEndpointInvocationResult>
The external evaluation endpoint invocation results.
  • Constructor Details

    • ExternalEvaluationEndpointInvocationResult

      public ExternalEvaluationEndpointInvocationResult()
      Creates an instance of ExternalEvaluationEndpointInvocationResult class.
  • Method Details

    • policyInfo

      public PolicyLogInfo policyInfo()
      Get the policyInfo property: The details of the policy requiring the external endpoint invocation.
      Returns:
      the policyInfo value.
    • withPolicyInfo

      public ExternalEvaluationEndpointInvocationResult withPolicyInfo(PolicyLogInfo policyInfo)
      Set the policyInfo property: The details of the policy requiring the external endpoint invocation.
      Parameters:
      policyInfo - the policyInfo value to set.
      Returns:
      the ExternalEvaluationEndpointInvocationResult object itself.
    • result

      public ExternalEndpointResult result()
      Get the result property: The result of the external endpoint. Possible values are Succeeded and Failed.
      Returns:
      the result value.
    • withResult

      Set the result property: The result of the external endpoint. Possible values are Succeeded and Failed.
      Parameters:
      result - the result value to set.
      Returns:
      the ExternalEvaluationEndpointInvocationResult object itself.
    • message

      public String message()
      Get the message property: The status message with additional details about the invocation result.
      Returns:
      the message value.
    • withMessage

      public ExternalEvaluationEndpointInvocationResult withMessage(String message)
      Set the message property: The status message with additional details about the invocation result.
      Parameters:
      message - the message value to set.
      Returns:
      the ExternalEvaluationEndpointInvocationResult object itself.
    • retryAfter

      public OffsetDateTime retryAfter()
      Get the retryAfter property: The date and time after which a failed endpoint invocation can be retried.
      Returns:
      the retryAfter value.
    • withRetryAfter

      public ExternalEvaluationEndpointInvocationResult withRetryAfter(OffsetDateTime retryAfter)
      Set the retryAfter property: The date and time after which a failed endpoint invocation can be retried.
      Parameters:
      retryAfter - the retryAfter value to set.
      Returns:
      the ExternalEvaluationEndpointInvocationResult object itself.
    • claims

      public Object claims()
      Get the claims property: The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.
      Returns:
      the claims value.
    • withClaims

      Set the claims property: The set of claims that will be attached to the policy token as an attestation for the result of the endpoint invocation.
      Parameters:
      claims - the claims value to set.
      Returns:
      the ExternalEvaluationEndpointInvocationResult object itself.
    • expiration

      public OffsetDateTime expiration()
      Get the expiration property: The expiration of the results.
      Returns:
      the expiration value.
    • withExpiration

      public ExternalEvaluationEndpointInvocationResult withExpiration(OffsetDateTime expiration)
      Set the expiration property: The expiration of the results.
      Parameters:
      expiration - the expiration value to set.
      Returns:
      the ExternalEvaluationEndpointInvocationResult object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ExternalEvaluationEndpointInvocationResult>
      Throws:
      IOException
    • fromJson

      public static ExternalEvaluationEndpointInvocationResult fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ExternalEvaluationEndpointInvocationResult from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ExternalEvaluationEndpointInvocationResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ExternalEvaluationEndpointInvocationResult.