Class ContainerAppAuthTokenProperties

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

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

    • ContainerAppAuthTokenProperties

      public ContainerAppAuthTokenProperties()
      Creates an instance of ContainerAppAuthTokenProperties 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<ContainerAppAuthTokenProperties>
      Throws:
      IOException
    • fromJson

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