com.equinix.pulumi.networkedge.outputs.GetDeviceSshKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of equinix Show documentation
Show all versions of equinix Show documentation
A Pulumi package for creating and managing equinix cloud 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.equinix.pulumi.networkedge.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class GetDeviceSshKey {
/**
* @return Reference by name to previously provisioned public SSH key
*
*/
private String keyName;
/**
* @return Username associated with given key
*
*/
private String username;
private GetDeviceSshKey() {}
/**
* @return Reference by name to previously provisioned public SSH key
*
*/
public String keyName() {
return this.keyName;
}
/**
* @return Username associated with given key
*
*/
public String username() {
return this.username;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetDeviceSshKey defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String keyName;
private String username;
public Builder() {}
public Builder(GetDeviceSshKey defaults) {
Objects.requireNonNull(defaults);
this.keyName = defaults.keyName;
this.username = defaults.username;
}
@CustomType.Setter
public Builder keyName(String keyName) {
if (keyName == null) {
throw new MissingRequiredPropertyException("GetDeviceSshKey", "keyName");
}
this.keyName = keyName;
return this;
}
@CustomType.Setter
public Builder username(String username) {
if (username == null) {
throw new MissingRequiredPropertyException("GetDeviceSshKey", "username");
}
this.username = username;
return this;
}
public GetDeviceSshKey build() {
final var _resultValue = new GetDeviceSshKey();
_resultValue.keyName = keyName;
_resultValue.username = username;
return _resultValue;
}
}
}