
com.pulumi.azurenative.workloads.outputs.LinuxConfigurationResponse 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.workloads.outputs;
import com.pulumi.azurenative.workloads.outputs.SshConfigurationResponse;
import com.pulumi.azurenative.workloads.outputs.SshKeyPairResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class LinuxConfigurationResponse {
/**
* @return Specifies whether password authentication should be disabled.
*
*/
private @Nullable Boolean disablePasswordAuthentication;
/**
* @return The OS Type
* Expected value is 'Linux'.
*
*/
private String osType;
/**
* @return Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
*
*/
private @Nullable SshConfigurationResponse ssh;
/**
* @return The SSH Key-pair used to authenticate with the VM's.
*
*/
private @Nullable SshKeyPairResponse sshKeyPair;
private LinuxConfigurationResponse() {}
/**
* @return Specifies whether password authentication should be disabled.
*
*/
public Optional disablePasswordAuthentication() {
return Optional.ofNullable(this.disablePasswordAuthentication);
}
/**
* @return The OS Type
* Expected value is 'Linux'.
*
*/
public String osType() {
return this.osType;
}
/**
* @return Specifies the ssh key configuration for a Linux OS. (This property is deprecated, please use 'sshKeyPair' instead)
*
*/
public Optional ssh() {
return Optional.ofNullable(this.ssh);
}
/**
* @return The SSH Key-pair used to authenticate with the VM's.
*
*/
public Optional sshKeyPair() {
return Optional.ofNullable(this.sshKeyPair);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(LinuxConfigurationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable Boolean disablePasswordAuthentication;
private String osType;
private @Nullable SshConfigurationResponse ssh;
private @Nullable SshKeyPairResponse sshKeyPair;
public Builder() {}
public Builder(LinuxConfigurationResponse defaults) {
Objects.requireNonNull(defaults);
this.disablePasswordAuthentication = defaults.disablePasswordAuthentication;
this.osType = defaults.osType;
this.ssh = defaults.ssh;
this.sshKeyPair = defaults.sshKeyPair;
}
@CustomType.Setter
public Builder disablePasswordAuthentication(@Nullable Boolean disablePasswordAuthentication) {
this.disablePasswordAuthentication = disablePasswordAuthentication;
return this;
}
@CustomType.Setter
public Builder osType(String osType) {
if (osType == null) {
throw new MissingRequiredPropertyException("LinuxConfigurationResponse", "osType");
}
this.osType = osType;
return this;
}
@CustomType.Setter
public Builder ssh(@Nullable SshConfigurationResponse ssh) {
this.ssh = ssh;
return this;
}
@CustomType.Setter
public Builder sshKeyPair(@Nullable SshKeyPairResponse sshKeyPair) {
this.sshKeyPair = sshKeyPair;
return this;
}
public LinuxConfigurationResponse build() {
final var _resultValue = new LinuxConfigurationResponse();
_resultValue.disablePasswordAuthentication = disablePasswordAuthentication;
_resultValue.osType = osType;
_resultValue.ssh = ssh;
_resultValue.sshKeyPair = sshKeyPair;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy