com.pulumi.azure.compute.outputs.VirtualMachineOsProfileLinuxConfigSshKey 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.azure.compute.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class VirtualMachineOsProfileLinuxConfigSshKey {
/**
* @return The Public SSH Key which should be written to the `path` defined above.
*
* > **Note:** Azure only supports RSA SSH2 key signatures of at least 2048 bits in length
*
*/
private String keyData;
/**
* @return The path of the destination file on the virtual machine
*
* > **NOTE:** Due to a limitation in the Azure VM Agent the only allowed `path` is `/home/{username}/.ssh/authorized_keys`.
*
*/
private String path;
private VirtualMachineOsProfileLinuxConfigSshKey() {}
/**
* @return The Public SSH Key which should be written to the `path` defined above.
*
* > **Note:** Azure only supports RSA SSH2 key signatures of at least 2048 bits in length
*
*/
public String keyData() {
return this.keyData;
}
/**
* @return The path of the destination file on the virtual machine
*
* > **NOTE:** Due to a limitation in the Azure VM Agent the only allowed `path` is `/home/{username}/.ssh/authorized_keys`.
*
*/
public String path() {
return this.path;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(VirtualMachineOsProfileLinuxConfigSshKey defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String keyData;
private String path;
public Builder() {}
public Builder(VirtualMachineOsProfileLinuxConfigSshKey defaults) {
Objects.requireNonNull(defaults);
this.keyData = defaults.keyData;
this.path = defaults.path;
}
@CustomType.Setter
public Builder keyData(String keyData) {
if (keyData == null) {
throw new MissingRequiredPropertyException("VirtualMachineOsProfileLinuxConfigSshKey", "keyData");
}
this.keyData = keyData;
return this;
}
@CustomType.Setter
public Builder path(String path) {
if (path == null) {
throw new MissingRequiredPropertyException("VirtualMachineOsProfileLinuxConfigSshKey", "path");
}
this.path = path;
return this;
}
public VirtualMachineOsProfileLinuxConfigSshKey build() {
final var _resultValue = new VirtualMachineOsProfileLinuxConfigSshKey();
_resultValue.keyData = keyData;
_resultValue.path = path;
return _resultValue;
}
}
}