StartRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.workloadssapvirtualinstance.models.StartRequest

Implements

public final class StartRequest
implements JsonSerializable<StartRequest>

Start SAP instance(s) request body.

Constructor Summary

Constructor Description
StartRequest()

Creates an instance of StartRequest class.

Method Summary

Modifier and Type Method and Description
static StartRequest fromJson(JsonReader jsonReader)

Reads an instance of StartRequest from the JsonReader.

Boolean startVm()

Get the startVm property: The boolean value indicates whether to start the virtual machines before starting the SAP instances.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StartRequest withStartVm(Boolean startVm)

Set the startVm property: The boolean value indicates whether to start the virtual machines before starting the SAP instances.

Methods inherited from java.lang.Object

Constructor Details

StartRequest

public StartRequest()

Creates an instance of StartRequest class.

Method Details

fromJson

public static StartRequest fromJson(JsonReader jsonReader)

Reads an instance of StartRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

startVm

public Boolean startVm()

Get the startVm property: The boolean value indicates whether to start the virtual machines before starting the SAP instances.

Returns:

the startVm value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withStartVm

public StartRequest withStartVm(Boolean startVm)

Set the startVm property: The boolean value indicates whether to start the virtual machines before starting the SAP instances.

Parameters:

startVm - the startVm value to set.

Returns:

the StartRequest object itself.

Applies to