StopOnDisconnectConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. devcenter. models. StopOnDisconnectConfiguration
- com.
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 Stop |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Stop |
fromJson(JsonReader jsonReader)
Reads an instance of Stop |
| Integer |
gracePeriodMinutes()
Get the grace |
|
Stop |
status()
Get the status property: Whether the feature to stop the Dev Box on disconnect once the grace period has lapsed is enabled. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Stop |
withGracePeriodMinutes(Integer gracePeriodMinutes)
Set the grace |
|
Stop |
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:
Returns:
Throws:
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:
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:
toJson
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:
Returns:
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:
Returns: