com.pulumi.azurenative.workloads.outputs.SshKeyPairResponse 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.workloads.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 SshKeyPairResponse {
/**
* @return SSH private key.
*
*/
private @Nullable String privateKey;
/**
* @return SSH public key
*
*/
private @Nullable String publicKey;
private SshKeyPairResponse() {}
/**
* @return SSH private key.
*
*/
public Optional privateKey() {
return Optional.ofNullable(this.privateKey);
}
/**
* @return SSH public key
*
*/
public Optional publicKey() {
return Optional.ofNullable(this.publicKey);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(SshKeyPairResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String privateKey;
private @Nullable String publicKey;
public Builder() {}
public Builder(SshKeyPairResponse defaults) {
Objects.requireNonNull(defaults);
this.privateKey = defaults.privateKey;
this.publicKey = defaults.publicKey;
}
@CustomType.Setter
public Builder privateKey(@Nullable String privateKey) {
this.privateKey = privateKey;
return this;
}
@CustomType.Setter
public Builder publicKey(@Nullable String publicKey) {
this.publicKey = publicKey;
return this;
}
public SshKeyPairResponse build() {
final var _resultValue = new SshKeyPairResponse();
_resultValue.privateKey = privateKey;
_resultValue.publicKey = publicKey;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy