Class PolicyTokenResponseInner

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

public final class PolicyTokenResponseInner extends Object implements com.azure.json.JsonSerializable<PolicyTokenResponseInner>
The policy token response properties.
  • Constructor Details

    • PolicyTokenResponseInner

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

    • result

      public PolicyTokenResult result()
      Get the result property: The result of the completed token acquisition operation. Possible values are Succeeded and Failed.
      Returns:
      the result value.
    • withResult

      public PolicyTokenResponseInner withResult(PolicyTokenResult result)
      Set the result property: The result of the completed token acquisition operation. Possible values are Succeeded and Failed.
      Parameters:
      result - the result value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • message

      public String message()
      Get the message property: Status message with additional details about the token acquisition operation result.
      Returns:
      the message value.
    • withMessage

      public PolicyTokenResponseInner withMessage(String message)
      Set the message property: Status message with additional details about the token acquisition operation result.
      Parameters:
      message - the message value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • retryAfter

      public OffsetDateTime retryAfter()
      Get the retryAfter property: The date and time after which the client can try to acquire a token again in the case of retry-able failures.
      Returns:
      the retryAfter value.
    • withRetryAfter

      public PolicyTokenResponseInner withRetryAfter(OffsetDateTime retryAfter)
      Set the retryAfter property: The date and time after which the client can try to acquire a token again in the case of retry-able failures.
      Parameters:
      retryAfter - the retryAfter value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • results

      Get the results property: An array of external evaluation endpoint invocation results.
      Returns:
      the results value.
    • withResults

      Set the results property: An array of external evaluation endpoint invocation results.
      Parameters:
      results - the results value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • changeReference

      public String changeReference()
      Get the changeReference property: The change reference associated with the operation for which the token is acquired.
      Returns:
      the changeReference value.
    • withChangeReference

      public PolicyTokenResponseInner withChangeReference(String changeReference)
      Set the changeReference property: The change reference associated with the operation for which the token is acquired.
      Parameters:
      changeReference - the changeReference value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • token

      public String token()
      Get the token property: The issued policy token.
      Returns:
      the token value.
    • withToken

      public PolicyTokenResponseInner withToken(String token)
      Set the token property: The issued policy token.
      Parameters:
      token - the token value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • tokenId

      public String tokenId()
      Get the tokenId property: The unique Id assigned to the policy token.
      Returns:
      the tokenId value.
    • withTokenId

      public PolicyTokenResponseInner withTokenId(String tokenId)
      Set the tokenId property: The unique Id assigned to the policy token.
      Parameters:
      tokenId - the tokenId value to set.
      Returns:
      the PolicyTokenResponseInner object itself.
    • expiration

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

      public PolicyTokenResponseInner withExpiration(OffsetDateTime expiration)
      Set the expiration property: The expiration of the policy token.
      Parameters:
      expiration - the expiration value to set.
      Returns:
      the PolicyTokenResponseInner 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<PolicyTokenResponseInner>
      Throws:
      IOException
    • fromJson

      public static PolicyTokenResponseInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of PolicyTokenResponseInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of PolicyTokenResponseInner 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 PolicyTokenResponseInner.