StopRequest Class

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

Implements

public final class StopRequest
implements JsonSerializable<StopRequest>

Stop SAP instance(s) request body.

Constructor Summary

Constructor Description
StopRequest()

Creates an instance of StopRequest class.

Method Summary

Modifier and Type Method and Description
Boolean deallocateVm()

Get the deallocateVm property: The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.

static StopRequest fromJson(JsonReader jsonReader)

Reads an instance of StopRequest from the JsonReader.

Long softStopTimeoutSeconds()

Get the softStopTimeoutSeconds property: This parameter defines how long (in seconds) the soft shutdown waits until the RFC/HTTP clients no longer consider the server for calls with load balancing.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StopRequest withDeallocateVm(Boolean deallocateVm)

Set the deallocateVm property: The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.

StopRequest withSoftStopTimeoutSeconds(Long softStopTimeoutSeconds)

Set the softStopTimeoutSeconds property: This parameter defines how long (in seconds) the soft shutdown waits until the RFC/HTTP clients no longer consider the server for calls with load balancing.

Methods inherited from java.lang.Object

Constructor Details

StopRequest

public StopRequest()

Creates an instance of StopRequest class.

Method Details

deallocateVm

public Boolean deallocateVm()

Get the deallocateVm property: The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.

Returns:

the deallocateVm value.

fromJson

public static StopRequest fromJson(JsonReader jsonReader)

Reads an instance of StopRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

softStopTimeoutSeconds

public Long softStopTimeoutSeconds()

Get the softStopTimeoutSeconds property: This parameter defines how long (in seconds) the soft shutdown waits until the RFC/HTTP clients no longer consider the server for calls with load balancing. Value 0 means that the kernel does not wait, but goes directly into the next shutdown state, i.e. hard stop.

Returns:

the softStopTimeoutSeconds value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDeallocateVm

public StopRequest withDeallocateVm(Boolean deallocateVm)

Set the deallocateVm property: The boolean value indicates whether to Stop and deallocate the virtual machines along with the SAP instances.

Parameters:

deallocateVm - the deallocateVm value to set.

Returns:

the StopRequest object itself.

withSoftStopTimeoutSeconds

public StopRequest withSoftStopTimeoutSeconds(Long softStopTimeoutSeconds)

Set the softStopTimeoutSeconds property: This parameter defines how long (in seconds) the soft shutdown waits until the RFC/HTTP clients no longer consider the server for calls with load balancing. Value 0 means that the kernel does not wait, but goes directly into the next shutdown state, i.e. hard stop.

Parameters:

softStopTimeoutSeconds - the softStopTimeoutSeconds value to set.

Returns:

the StopRequest object itself.

Applies to