
com.pulumi.azurenative.labservices.outputs.AutoShutdownProfileResponse Maven / Gradle / Ivy
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.labservices.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutoShutdownProfileResponse {
/**
* @return The amount of time a VM will stay running after a user disconnects if this behavior is enabled.
*
*/
private @Nullable String disconnectDelay;
/**
* @return The amount of time a VM will idle before it is shutdown if this behavior is enabled.
*
*/
private @Nullable String idleDelay;
/**
* @return The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.
*
*/
private @Nullable String noConnectDelay;
/**
* @return Whether shutdown on disconnect is enabled
*
*/
private @Nullable String shutdownOnDisconnect;
/**
* @return Whether a VM will get shutdown when it has idled for a period of time.
*
*/
private @Nullable String shutdownOnIdle;
/**
* @return Whether a VM will get shutdown when it hasn't been connected to after a period of time.
*
*/
private @Nullable String shutdownWhenNotConnected;
private AutoShutdownProfileResponse() {}
/**
* @return The amount of time a VM will stay running after a user disconnects if this behavior is enabled.
*
*/
public Optional disconnectDelay() {
return Optional.ofNullable(this.disconnectDelay);
}
/**
* @return The amount of time a VM will idle before it is shutdown if this behavior is enabled.
*
*/
public Optional idleDelay() {
return Optional.ofNullable(this.idleDelay);
}
/**
* @return The amount of time a VM will stay running before it is shutdown if no connection is made and this behavior is enabled.
*
*/
public Optional noConnectDelay() {
return Optional.ofNullable(this.noConnectDelay);
}
/**
* @return Whether shutdown on disconnect is enabled
*
*/
public Optional shutdownOnDisconnect() {
return Optional.ofNullable(this.shutdownOnDisconnect);
}
/**
* @return Whether a VM will get shutdown when it has idled for a period of time.
*
*/
public Optional shutdownOnIdle() {
return Optional.ofNullable(this.shutdownOnIdle);
}
/**
* @return Whether a VM will get shutdown when it hasn't been connected to after a period of time.
*
*/
public Optional shutdownWhenNotConnected() {
return Optional.ofNullable(this.shutdownWhenNotConnected);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutoShutdownProfileResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String disconnectDelay;
private @Nullable String idleDelay;
private @Nullable String noConnectDelay;
private @Nullable String shutdownOnDisconnect;
private @Nullable String shutdownOnIdle;
private @Nullable String shutdownWhenNotConnected;
public Builder() {}
public Builder(AutoShutdownProfileResponse defaults) {
Objects.requireNonNull(defaults);
this.disconnectDelay = defaults.disconnectDelay;
this.idleDelay = defaults.idleDelay;
this.noConnectDelay = defaults.noConnectDelay;
this.shutdownOnDisconnect = defaults.shutdownOnDisconnect;
this.shutdownOnIdle = defaults.shutdownOnIdle;
this.shutdownWhenNotConnected = defaults.shutdownWhenNotConnected;
}
@CustomType.Setter
public Builder disconnectDelay(@Nullable String disconnectDelay) {
this.disconnectDelay = disconnectDelay;
return this;
}
@CustomType.Setter
public Builder idleDelay(@Nullable String idleDelay) {
this.idleDelay = idleDelay;
return this;
}
@CustomType.Setter
public Builder noConnectDelay(@Nullable String noConnectDelay) {
this.noConnectDelay = noConnectDelay;
return this;
}
@CustomType.Setter
public Builder shutdownOnDisconnect(@Nullable String shutdownOnDisconnect) {
this.shutdownOnDisconnect = shutdownOnDisconnect;
return this;
}
@CustomType.Setter
public Builder shutdownOnIdle(@Nullable String shutdownOnIdle) {
this.shutdownOnIdle = shutdownOnIdle;
return this;
}
@CustomType.Setter
public Builder shutdownWhenNotConnected(@Nullable String shutdownWhenNotConnected) {
this.shutdownWhenNotConnected = shutdownWhenNotConnected;
return this;
}
public AutoShutdownProfileResponse build() {
final var _resultValue = new AutoShutdownProfileResponse();
_resultValue.disconnectDelay = disconnectDelay;
_resultValue.idleDelay = idleDelay;
_resultValue.noConnectDelay = noConnectDelay;
_resultValue.shutdownOnDisconnect = shutdownOnDisconnect;
_resultValue.shutdownOnIdle = shutdownOnIdle;
_resultValue.shutdownWhenNotConnected = shutdownWhenNotConnected;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy