Share via


AllInstancesDown Class

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

Implements

public final class AllInstancesDown
implements JsonSerializable<AllInstancesDown>

Specifies if Scheduled Events should be auto-approved when all instances are down.

Constructor Summary

Constructor Description
AllInstancesDown()

Creates an instance of AllInstancesDown class.

Method Summary

Modifier and Type Method and Description
Boolean automaticallyApprove()

Get the automaticallyApprove property: Specifies if Scheduled Events should be auto-approved when all instances are down.

static AllInstancesDown fromJson(JsonReader jsonReader)

Reads an instance of AllInstancesDown from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AllInstancesDown withAutomaticallyApprove(Boolean automaticallyApprove)

Set the automaticallyApprove property: Specifies if Scheduled Events should be auto-approved when all instances are down.

Methods inherited from java.lang.Object

Constructor Details

AllInstancesDown

public AllInstancesDown()

Creates an instance of AllInstancesDown class.

Method Details

automaticallyApprove

public Boolean automaticallyApprove()

Get the automaticallyApprove property: Specifies if Scheduled Events should be auto-approved when all instances are down. its default value is true.

Returns:

the automaticallyApprove value.

fromJson

public static AllInstancesDown fromJson(JsonReader jsonReader)

Reads an instance of AllInstancesDown from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAutomaticallyApprove

public AllInstancesDown withAutomaticallyApprove(Boolean automaticallyApprove)

Set the automaticallyApprove property: Specifies if Scheduled Events should be auto-approved when all instances are down. its default value is true.

Parameters:

automaticallyApprove - the automaticallyApprove value to set.

Returns:

the AllInstancesDown object itself.

Applies to