次の方法で共有


StopOnDisconnectConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.devcenter.models.StopOnDisconnectConfiguration

Implements

public final class StopOnDisconnectConfiguration
implements JsonSerializable<StopOnDisconnectConfiguration>

Stop on disconnect configuration settings for Dev Boxes created in this pool.

Constructor Summary

Constructor Description
StopOnDisconnectConfiguration()

Creates an instance of StopOnDisconnectConfiguration class.

Method Summary

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

Reads an instance of StopOnDisconnectConfiguration from the JsonReader.

Integer gracePeriodMinutes()

Get the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.

StopOnDisconnectEnableStatus status()

Get the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StopOnDisconnectConfiguration withGracePeriodMinutes(Integer gracePeriodMinutes)

Set the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.

StopOnDisconnectConfiguration withStatus(StopOnDisconnectEnableStatus status)

Set the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.

Methods inherited from java.lang.Object

Constructor Details

StopOnDisconnectConfiguration

public StopOnDisconnectConfiguration()

Creates an instance of StopOnDisconnectConfiguration class.

Method Details

fromJson

public static StopOnDisconnectConfiguration fromJson(JsonReader jsonReader)

Reads an instance of StopOnDisconnectConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

gracePeriodMinutes

public Integer gracePeriodMinutes()

Get the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.

Returns:

the gracePeriodMinutes value.

status

public StopOnDisconnectEnableStatus status()

Get the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withGracePeriodMinutes

public StopOnDisconnectConfiguration withGracePeriodMinutes(Integer gracePeriodMinutes)

Set the gracePeriodMinutes property: The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.

Parameters:

gracePeriodMinutes - the gracePeriodMinutes value to set.

Returns:

the StopOnDisconnectConfiguration object itself.

withStatus

public StopOnDisconnectConfiguration withStatus(StopOnDisconnectEnableStatus status)

Set the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled.

Parameters:

status - the status value to set.

Returns:

the StopOnDisconnectConfiguration object itself.

Applies to