Class EnvironmentAuthTokenProperties

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

public final class EnvironmentAuthTokenProperties extends Object implements com.azure.json.JsonSerializable<EnvironmentAuthTokenProperties>
Environment auth token resource specific properties.
  • Constructor Details

    • EnvironmentAuthTokenProperties

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

    • token

      public String token()
      Get the token property: Auth token value.
      Returns:
      the token value.
    • expires

      public OffsetDateTime expires()
      Get the expires property: Token expiration date.
      Returns:
      the expires value.
    • 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<EnvironmentAuthTokenProperties>
      Throws:
      IOException
    • fromJson

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