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

com.pulumi.linode.inputs.GetSshKeyArgs 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 GetSshKeyArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetSshKeyArgs Empty = new GetSshKeyArgs();

    /**
     * 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 to select.
     * 
     */
    @Import(name="label", required=true)
    private Output label;

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

    private GetSshKeyArgs() {}

    private GetSshKeyArgs(GetSshKeyArgs $) {
        this.id = $.id;
        this.label = $.label;
    }

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

    public static final class Builder {
        private GetSshKeyArgs $;

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

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

        /**
         * @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 to select.
         * 
         * @return builder
         * 
         */
        public Builder label(Output label) {
            $.label = label;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy