All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.equinix.pulumi.networkedge.outputs.GetDeviceSshKey Maven / Gradle / Ivy

There is a newer version: 0.19.0
Show newest version
// *** 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;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy