com.pulumi.azurenative.compute.outputs.SshPublicKeyResponse 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.compute.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 SshPublicKeyResponse {
/**
* @return SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
*
*/
private @Nullable String keyData;
/**
* @return Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
*
*/
private @Nullable String path;
private SshPublicKeyResponse() {}
/**
* @return SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure]https://docs.microsoft.com/azure/virtual-machines/linux/create-ssh-keys-detailed).
*
*/
public Optional keyData() {
return Optional.ofNullable(this.keyData);
}
/**
* @return Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
*
*/
public Optional path() {
return Optional.ofNullable(this.path);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SshPublicKeyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String keyData;
private @Nullable String path;
public Builder() {}
public Builder(SshPublicKeyResponse defaults) {
Objects.requireNonNull(defaults);
this.keyData = defaults.keyData;
this.path = defaults.path;
}
@CustomType.Setter
public Builder keyData(@Nullable String keyData) {
this.keyData = keyData;
return this;
}
@CustomType.Setter
public Builder path(@Nullable String path) {
this.path = path;
return this;
}
public SshPublicKeyResponse build() {
final var _resultValue = new SshPublicKeyResponse();
_resultValue.keyData = keyData;
_resultValue.path = path;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy