Partager via


RegistrationInfoPatch Class

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

Implements

public final class RegistrationInfoPatch
implements JsonSerializable<RegistrationInfoPatch>

Represents a RegistrationInfo definition.

Constructor Summary

Constructor Description
RegistrationInfoPatch()

Creates an instance of RegistrationInfoPatch class.

Method Summary

Modifier and Type Method and Description
OffsetDateTime expirationTime()

Get the expirationTime property: Expiration time of registration token.

static RegistrationInfoPatch fromJson(JsonReader jsonReader)

Reads an instance of RegistrationInfoPatch from the JsonReader.

RegistrationTokenOperation registrationTokenOperation()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

RegistrationInfoPatch withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Expiration time of registration token.

RegistrationInfoPatch withRegistrationTokenOperation(RegistrationTokenOperation registrationTokenOperation)

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

Methods inherited from java.lang.Object

Constructor Details

RegistrationInfoPatch

public RegistrationInfoPatch()

Creates an instance of RegistrationInfoPatch class.

Method Details

expirationTime

public OffsetDateTime expirationTime()

Get the expirationTime property: Expiration time of registration token.

Returns:

the expirationTime value.

fromJson

public static RegistrationInfoPatch fromJson(JsonReader jsonReader)

Reads an instance of RegistrationInfoPatch from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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:

validate

public void validate()

Validates the instance.

withExpirationTime

public RegistrationInfoPatch withExpirationTime(OffsetDateTime expirationTime)

Set the expirationTime property: Expiration time of registration token.

Parameters:

expirationTime - the expirationTime value to set.

Returns:

the RegistrationInfoPatch object itself.

withRegistrationTokenOperation

public RegistrationInfoPatch withRegistrationTokenOperation(RegistrationTokenOperation registrationTokenOperation)

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

Parameters:

registrationTokenOperation - the registrationTokenOperation value to set.

Returns:

the RegistrationInfoPatch object itself.

Applies to