UserInitiatedReboot Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.UserInitiatedReboot

Implements

public final class UserInitiatedReboot
implements JsonSerializable<UserInitiatedReboot>

Specifies Reboot related Scheduled Event related configurations.

Constructor Summary

Constructor Description
UserInitiatedReboot()

Creates an instance of UserInitiatedReboot class.

Method Summary

Modifier and Type Method and Description
Boolean automaticallyApprove()

Get the automaticallyApprove property: Specifies Reboot Scheduled Event related configurations.

static UserInitiatedReboot fromJson(JsonReader jsonReader)

Reads an instance of UserInitiatedReboot from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

UserInitiatedReboot withAutomaticallyApprove(Boolean automaticallyApprove)

Set the automaticallyApprove property: Specifies Reboot Scheduled Event related configurations.

Methods inherited from java.lang.Object

Constructor Details

UserInitiatedReboot

public UserInitiatedReboot()

Creates an instance of UserInitiatedReboot class.

Method Details

automaticallyApprove

public Boolean automaticallyApprove()

Get the automaticallyApprove property: Specifies Reboot Scheduled Event related configurations.

Returns:

the automaticallyApprove value.

fromJson

public static UserInitiatedReboot fromJson(JsonReader jsonReader)

Reads an instance of UserInitiatedReboot from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutomaticallyApprove

public UserInitiatedReboot withAutomaticallyApprove(Boolean automaticallyApprove)

Set the automaticallyApprove property: Specifies Reboot Scheduled Event related configurations.

Parameters:

automaticallyApprove - the automaticallyApprove value to set.

Returns:

the UserInitiatedReboot object itself.

Applies to