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 Summary
ConstructorsConstructorDescriptionCreates an instance of ContainerAppAuthTokenProperties class. -
Method Summary
Modifier and TypeMethodDescriptionexpires()
Get the expires property: Token expiration date.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerAppAuthTokenProperties from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) token()
Get the token property: Auth token value.void
validate()
Validates the instance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ContainerAppAuthTokenProperties
public ContainerAppAuthTokenProperties()Creates an instance of ContainerAppAuthTokenProperties class.
-
-
Method Details
-
token
Get the token property: Auth token value.- Returns:
- the token value.
-
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
- Specified by:
toJson
in interfacecom.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.
-