
com.pulumi.azurenative.machinelearningservices.outputs.ComputeInstanceSshSettingsResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.machinelearningservices.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ComputeInstanceSshSettingsResponse {
/**
* @return Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
*
*/
private @Nullable String adminPublicKey;
/**
* @return Describes the admin user name.
*
*/
private String adminUserName;
/**
* @return Describes the port for connecting through SSH.
*
*/
private Integer sshPort;
/**
* @return State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
*
*/
private @Nullable String sshPublicAccess;
private ComputeInstanceSshSettingsResponse() {}
/**
* @return Specifies the SSH rsa public key file as a string. Use "ssh-keygen -t rsa -b 2048" to generate your SSH key pairs.
*
*/
public Optional adminPublicKey() {
return Optional.ofNullable(this.adminPublicKey);
}
/**
* @return Describes the admin user name.
*
*/
public String adminUserName() {
return this.adminUserName;
}
/**
* @return Describes the port for connecting through SSH.
*
*/
public Integer sshPort() {
return this.sshPort;
}
/**
* @return State of the public SSH port. Possible values are: Disabled - Indicates that the public ssh port is closed on this instance. Enabled - Indicates that the public ssh port is open and accessible according to the VNet/subnet policy if applicable.
*
*/
public Optional sshPublicAccess() {
return Optional.ofNullable(this.sshPublicAccess);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ComputeInstanceSshSettingsResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String adminPublicKey;
private String adminUserName;
private Integer sshPort;
private @Nullable String sshPublicAccess;
public Builder() {}
public Builder(ComputeInstanceSshSettingsResponse defaults) {
Objects.requireNonNull(defaults);
this.adminPublicKey = defaults.adminPublicKey;
this.adminUserName = defaults.adminUserName;
this.sshPort = defaults.sshPort;
this.sshPublicAccess = defaults.sshPublicAccess;
}
@CustomType.Setter
public Builder adminPublicKey(@Nullable String adminPublicKey) {
this.adminPublicKey = adminPublicKey;
return this;
}
@CustomType.Setter
public Builder adminUserName(String adminUserName) {
if (adminUserName == null) {
throw new MissingRequiredPropertyException("ComputeInstanceSshSettingsResponse", "adminUserName");
}
this.adminUserName = adminUserName;
return this;
}
@CustomType.Setter
public Builder sshPort(Integer sshPort) {
if (sshPort == null) {
throw new MissingRequiredPropertyException("ComputeInstanceSshSettingsResponse", "sshPort");
}
this.sshPort = sshPort;
return this;
}
@CustomType.Setter
public Builder sshPublicAccess(@Nullable String sshPublicAccess) {
this.sshPublicAccess = sshPublicAccess;
return this;
}
public ComputeInstanceSshSettingsResponse build() {
final var _resultValue = new ComputeInstanceSshSettingsResponse();
_resultValue.adminPublicKey = adminPublicKey;
_resultValue.adminUserName = adminUserName;
_resultValue.sshPort = sshPort;
_resultValue.sshPublicAccess = sshPublicAccess;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy