RegistrationTokenMinimal Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.models.RegistrationTokenMinimal

Implements

public final class RegistrationTokenMinimal
implements JsonSerializable<RegistrationTokenMinimal>

Represents a Minimal set of properties for RegistrationToken definition.

Constructor Summary

Constructor Description
RegistrationTokenMinimal()

Creates an instance of RegistrationTokenMinimal class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expirationTime()

Get the expirationTime property: Expiration time of registration token.

static RegistrationTokenMinimal fromJson(JsonReader jsonReader)

Reads an instance of RegistrationTokenMinimal from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String token()

Get the token property: The registration token base64 encoded string.

void validate()

Validates the instance.

RegistrationTokenMinimal withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Expiration time of registration token.

RegistrationTokenMinimal withToken(String token)

Set the token property: The registration token base64 encoded string.

Methods inherited from java.lang.Object

Constructor Details

RegistrationTokenMinimal

public RegistrationTokenMinimal()

Creates an instance of RegistrationTokenMinimal class.

Method Details

expirationTime

public OffsetDateTime expirationTime()

Get the expirationTime property: Expiration time of registration token.

Returns:

the expirationTime value.

fromJson

public static RegistrationTokenMinimal fromJson(JsonReader jsonReader)

Reads an instance of RegistrationTokenMinimal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RegistrationTokenMinimal 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 RegistrationTokenMinimal.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

token

public String token()

Get the token property: The registration token base64 encoded string.

Returns:

the token value.

validate

public void validate()

Validates the instance.

withExpirationTime

public RegistrationTokenMinimal withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Expiration time of registration token.

Parameters:

expirationTime - the expirationTime value to set.

Returns:

the RegistrationTokenMinimal object itself.

withToken

public RegistrationTokenMinimal withToken(String token)

Set the token property: The registration token base64 encoded string.

Parameters:

token - the token value to set.

Returns:

the RegistrationTokenMinimal object itself.

Applies to