AutoShutdownProfile Class
- java.
lang. Object - com.
azure. resourcemanager. labservices. models. AutoShutdownProfile
- com.
Implements
public final class AutoShutdownProfile
implements JsonSerializable<AutoShutdownProfile>
Profile for how to handle shutting down virtual machines.
Constructor Summary
| Constructor | Description |
|---|---|
| AutoShutdownProfile() |
Creates an instance of Auto |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Duration |
disconnectDelay()
Get the disconnect |
|
static
Auto |
fromJson(JsonReader jsonReader)
Reads an instance of Auto |
| Duration |
idleDelay()
Get the idle |
| Duration |
noConnectDelay()
Get the no |
|
Enable |
shutdownOnDisconnect()
Get the shutdown |
|
Shutdown |
shutdownOnIdle()
Get the shutdown |
|
Enable |
shutdownWhenNotConnected()
Get the shutdown |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Auto |
withDisconnectDelay(Duration disconnectDelay)
Set the disconnect |
|
Auto |
withIdleDelay(Duration idleDelay)
Set the idle |
|
Auto |
withNoConnectDelay(Duration noConnectDelay)
Set the no |
|
Auto |
withShutdownOnDisconnect(EnableState shutdownOnDisconnect)
Set the shutdown |
|
Auto |
withShutdownOnIdle(ShutdownOnIdleMode shutdownOnIdle)
Set the shutdown |
|
Auto |
withShutdownWhenNotConnected(EnableState shutdownWhenNotConnected)
Set the shutdown |
Methods inherited from java.lang.Object
Constructor Details
AutoShutdownProfile
public AutoShutdownProfile()
Creates an instance of AutoShutdownProfile class.
Method Details
disconnectDelay
public Duration disconnectDelay()
Get the disconnectDelay property: The amount of time a VM will stay running after a user disconnects if this behavior is enabled.
Returns:
fromJson
public static AutoShutdownProfile fromJson(JsonReader jsonReader)
Reads an instance of AutoShutdownProfile from the JsonReader.
Parameters:
Returns:
Throws:
idleDelay
public Duration idleDelay()
Get the idleDelay property: The amount of time a VM will idle before it is shutdown if this behavior is enabled.
Returns:
noConnectDelay
public Duration noConnectDelay()
Get the noConnectDelay property: The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.
Returns:
shutdownOnDisconnect
public EnableState shutdownOnDisconnect()
Get the shutdownOnDisconnect property: Whether shutdown on disconnect is enabled.
Returns:
shutdownOnIdle
public ShutdownOnIdleMode shutdownOnIdle()
Get the shutdownOnIdle property: Whether a VM will get shutdown when it has idled for a period of time.
Returns:
shutdownWhenNotConnected
public EnableState shutdownWhenNotConnected()
Get the shutdownWhenNotConnected property: Whether a VM will get shutdown when it hasn't been connected to after a period of time.
Returns:
toJson
validate
public void validate()
Validates the instance.
withDisconnectDelay
public AutoShutdownProfile withDisconnectDelay(Duration disconnectDelay)
Set the disconnectDelay property: The amount of time a VM will stay running after a user disconnects if this behavior is enabled.
Parameters:
Returns:
withIdleDelay
public AutoShutdownProfile withIdleDelay(Duration idleDelay)
Set the idleDelay property: The amount of time a VM will idle before it is shutdown if this behavior is enabled.
Parameters:
Returns:
withNoConnectDelay
public AutoShutdownProfile withNoConnectDelay(Duration noConnectDelay)
Set the noConnectDelay property: The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.
Parameters:
Returns:
withShutdownOnDisconnect
public AutoShutdownProfile withShutdownOnDisconnect(EnableState shutdownOnDisconnect)
Set the shutdownOnDisconnect property: Whether shutdown on disconnect is enabled.
Parameters:
Returns:
withShutdownOnIdle
public AutoShutdownProfile withShutdownOnIdle(ShutdownOnIdleMode shutdownOnIdle)
Set the shutdownOnIdle property: Whether a VM will get shutdown when it has idled for a period of time.
Parameters:
Returns:
withShutdownWhenNotConnected
public AutoShutdownProfile withShutdownWhenNotConnected(EnableState shutdownWhenNotConnected)
Set the shutdownWhenNotConnected property: Whether a VM will get shutdown when it hasn't been connected to after a period of time.
Parameters:
Returns: