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

com.pulumi.linode.inputs.GetSshkeysSshkeyArgs Maven / Gradle / Ivy

There is a newer version: 4.31.0-alpha.1732773076
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.pulumi.linode.inputs;

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


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

    public static final GetSshkeysSshkeyArgs Empty = new GetSshkeysSshkeyArgs();

    /**
     * The date this key was added.
     * 
     */
    @Import(name="created", required=true)
    private Output created;

    /**
     * @return The date this key was added.
     * 
     */
    public Output created() {
        return this.created;
    }

    /**
     * The ID of the SSH Key.
     * 
     */
    @Import(name="id")
    private @Nullable Output id;

    /**
     * @return The ID of the SSH Key.
     * 
     */
    public Optional> id() {
        return Optional.ofNullable(this.id);
    }

    /**
     * The label of the SSH Key.
     * 
     */
    @Import(name="label", required=true)
    private Output label;

    /**
     * @return The label of the SSH Key.
     * 
     */
    public Output label() {
        return this.label;
    }

    /**
     * The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
     * 
     */
    @Import(name="sshKey", required=true)
    private Output sshKey;

    /**
     * @return The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
     * 
     */
    public Output sshKey() {
        return this.sshKey;
    }

    private GetSshkeysSshkeyArgs() {}

    private GetSshkeysSshkeyArgs(GetSshkeysSshkeyArgs $) {
        this.created = $.created;
        this.id = $.id;
        this.label = $.label;
        this.sshKey = $.sshKey;
    }

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

    public static final class Builder {
        private GetSshkeysSshkeyArgs $;

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

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

        /**
         * @param created The date this key was added.
         * 
         * @return builder
         * 
         */
        public Builder created(Output created) {
            $.created = created;
            return this;
        }

        /**
         * @param created The date this key was added.
         * 
         * @return builder
         * 
         */
        public Builder created(String created) {
            return created(Output.of(created));
        }

        /**
         * @param id The ID of the SSH Key.
         * 
         * @return builder
         * 
         */
        public Builder id(@Nullable Output id) {
            $.id = id;
            return this;
        }

        /**
         * @param id The ID of the SSH Key.
         * 
         * @return builder
         * 
         */
        public Builder id(String id) {
            return id(Output.of(id));
        }

        /**
         * @param label The label of the SSH Key.
         * 
         * @return builder
         * 
         */
        public Builder label(Output label) {
            $.label = label;
            return this;
        }

        /**
         * @param label The label of the SSH Key.
         * 
         * @return builder
         * 
         */
        public Builder label(String label) {
            return label(Output.of(label));
        }

        /**
         * @param sshKey The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
         * 
         * @return builder
         * 
         */
        public Builder sshKey(Output sshKey) {
            $.sshKey = sshKey;
            return this;
        }

        /**
         * @param sshKey The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
         * 
         * @return builder
         * 
         */
        public Builder sshKey(String sshKey) {
            return sshKey(Output.of(sshKey));
        }

        public GetSshkeysSshkeyArgs build() {
            if ($.created == null) {
                throw new MissingRequiredPropertyException("GetSshkeysSshkeyArgs", "created");
            }
            if ($.label == null) {
                throw new MissingRequiredPropertyException("GetSshkeysSshkeyArgs", "label");
            }
            if ($.sshKey == null) {
                throw new MissingRequiredPropertyException("GetSshkeysSshkeyArgs", "sshKey");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy