Class StopOnDisconnectConfiguration
java.lang.Object
com.azure.developer.devcenter.models.StopOnDisconnectConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StopOnDisconnectConfiguration>
public final class StopOnDisconnectConfiguration
extends Object
implements com.azure.json.JsonSerializable<StopOnDisconnectConfiguration>
Stop on disconnect configuration settings for Dev Boxes created in this pool.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StopOnDisconnectConfiguration from the JsonReader.Get the gracePeriodInMinutes property: The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.Get the status property: Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getStatus
Get the status property: Indicates whether the feature to stop the devbox on disconnect once the grace period has lapsed is enabled.- Returns:
- the status value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<StopOnDisconnectConfiguration>- Throws:
IOException
-
fromJson
public static StopOnDisconnectConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException 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:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the StopOnDisconnectConfiguration.
-
getGracePeriodInMinutes
Get the gracePeriodInMinutes property: The specified time in minutes to wait before stopping a Dev Box once disconnect is detected.- Returns:
- the gracePeriodInMinutes value.
-