RegistrationInfoInner Class

  • java.lang.Object
    • com.azure.resourcemanager.desktopvirtualization.fluent.models.RegistrationInfoInner

Implements

public final class RegistrationInfoInner
implements JsonSerializable<RegistrationInfoInner>

Represents a RegistrationInfo definition.

Constructor Summary

Constructor Description
RegistrationInfoInner()

Creates an instance of RegistrationInfoInner class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expirationTime()

Get the expirationTime property: Expiration time of registration token.

static RegistrationInfoInner fromJson(JsonReader jsonReader)

Reads an instance of RegistrationInfoInner from the JsonReader.

RegistrationTokenOperation registrationTokenOperation()

Get the registrationTokenOperation property: The type of resetting the token.

JsonWriter toJson(JsonWriter jsonWriter)
String token()

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

void validate()

Validates the instance.

RegistrationInfoInner withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Expiration time of registration token.

RegistrationInfoInner withRegistrationTokenOperation(RegistrationTokenOperation registrationTokenOperation)

Set the registrationTokenOperation property: The type of resetting the token.

RegistrationInfoInner withToken(String token)

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

Methods inherited from java.lang.Object

Constructor Details

RegistrationInfoInner

public RegistrationInfoInner()

Creates an instance of RegistrationInfoInner class.

Method Details

expirationTime

public OffsetDateTime expirationTime()

Get the expirationTime property: Expiration time of registration token.

Returns:

the expirationTime value.

fromJson

public static RegistrationInfoInner fromJson(JsonReader jsonReader)

Reads an instance of RegistrationInfoInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

registrationTokenOperation

public RegistrationTokenOperation registrationTokenOperation()

Get the registrationTokenOperation property: The type of resetting the token.

Returns:

the registrationTokenOperation value.

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 RegistrationInfoInner withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Expiration time of registration token.

Parameters:

expirationTime - the expirationTime value to set.

Returns:

the RegistrationInfoInner object itself.

withRegistrationTokenOperation

public RegistrationInfoInner withRegistrationTokenOperation(RegistrationTokenOperation registrationTokenOperation)

Set the registrationTokenOperation property: The type of resetting the token.

Parameters:

registrationTokenOperation - the registrationTokenOperation value to set.

Returns:

the RegistrationInfoInner object itself.

withToken

public RegistrationInfoInner withToken(String token)

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

Parameters:

token - the token value to set.

Returns:

the RegistrationInfoInner object itself.

Applies to