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

com.pulumi.aws.transfer.SshKeyArgs 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.aws.transfer;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class SshKeyArgs extends com.pulumi.resources.ResourceArgs {

    public static final SshKeyArgs Empty = new SshKeyArgs();

    /**
     * The public key portion of an SSH key pair.
     * 
     */
    @Import(name="body", required=true)
    private Output body;

    /**
     * @return The public key portion of an SSH key pair.
     * 
     */
    public Output body() {
        return this.body;
    }

    /**
     * The Server ID of the Transfer Server (e.g., `s-12345678`)
     * 
     */
    @Import(name="serverId", required=true)
    private Output serverId;

    /**
     * @return The Server ID of the Transfer Server (e.g., `s-12345678`)
     * 
     */
    public Output serverId() {
        return this.serverId;
    }

    /**
     * The name of the user account that is assigned to one or more servers.
     * 
     */
    @Import(name="userName", required=true)
    private Output userName;

    /**
     * @return The name of the user account that is assigned to one or more servers.
     * 
     */
    public Output userName() {
        return this.userName;
    }

    private SshKeyArgs() {}

    private SshKeyArgs(SshKeyArgs $) {
        this.body = $.body;
        this.serverId = $.serverId;
        this.userName = $.userName;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(SshKeyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private SshKeyArgs $;

        public Builder() {
            $ = new SshKeyArgs();
        }

        public Builder(SshKeyArgs defaults) {
            $ = new SshKeyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param body The public key portion of an SSH key pair.
         * 
         * @return builder
         * 
         */
        public Builder body(Output body) {
            $.body = body;
            return this;
        }

        /**
         * @param body The public key portion of an SSH key pair.
         * 
         * @return builder
         * 
         */
        public Builder body(String body) {
            return body(Output.of(body));
        }

        /**
         * @param serverId The Server ID of the Transfer Server (e.g., `s-12345678`)
         * 
         * @return builder
         * 
         */
        public Builder serverId(Output serverId) {
            $.serverId = serverId;
            return this;
        }

        /**
         * @param serverId The Server ID of the Transfer Server (e.g., `s-12345678`)
         * 
         * @return builder
         * 
         */
        public Builder serverId(String serverId) {
            return serverId(Output.of(serverId));
        }

        /**
         * @param userName The name of the user account that is assigned to one or more servers.
         * 
         * @return builder
         * 
         */
        public Builder userName(Output userName) {
            $.userName = userName;
            return this;
        }

        /**
         * @param userName The name of the user account that is assigned to one or more servers.
         * 
         * @return builder
         * 
         */
        public Builder userName(String userName) {
            return userName(Output.of(userName));
        }

        public SshKeyArgs build() {
            if ($.body == null) {
                throw new MissingRequiredPropertyException("SshKeyArgs", "body");
            }
            if ($.serverId == null) {
                throw new MissingRequiredPropertyException("SshKeyArgs", "serverId");
            }
            if ($.userName == null) {
                throw new MissingRequiredPropertyException("SshKeyArgs", "userName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy