共用方式為


EnvironmentAuthTokenProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.appcontainers.fluent.models.EnvironmentAuthTokenProperties

Implements

public final class EnvironmentAuthTokenProperties
implements JsonSerializable<EnvironmentAuthTokenProperties>

Environment auth token resource specific properties.

Constructor Summary

Constructor Description
EnvironmentAuthTokenProperties()

Creates an instance of EnvironmentAuthTokenProperties class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expires()

Get the expires property: Token expiration date.

static EnvironmentAuthTokenProperties fromJson(JsonReader jsonReader)

Reads an instance of EnvironmentAuthTokenProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String token()

Get the token property: Auth token value.

void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

EnvironmentAuthTokenProperties

public EnvironmentAuthTokenProperties()

Creates an instance of EnvironmentAuthTokenProperties class.

Method Details

expires

public OffsetDateTime expires()

Get the expires property: Token expiration date.

Returns:

the expires value.

fromJson

public static EnvironmentAuthTokenProperties fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

token

public String token()

Get the token property: Auth token value.

Returns:

the token value.

validate

public void validate()

Validates the instance.

Applies to