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

com.equinix.pulumi.metal.inputs.ProjectSshKeyState 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.metal.inputs;

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


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

    public static final ProjectSshKeyState Empty = new ProjectSshKeyState();

    /**
     * The timestamp for when the SSH key was created.
     * 
     */
    @Import(name="created")
    private @Nullable Output created;

    /**
     * @return The timestamp for when the SSH key was created.
     * 
     */
    public Optional> created() {
        return Optional.ofNullable(this.created);
    }

    /**
     * The fingerprint of the SSH key.
     * 
     */
    @Import(name="fingerprint")
    private @Nullable Output fingerprint;

    /**
     * @return The fingerprint of the SSH key.
     * 
     */
    public Optional> fingerprint() {
        return Optional.ofNullable(this.fingerprint);
    }

    /**
     * The name of the SSH key for identification.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the SSH key for identification.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of parent project (same as project_id).
     * 
     */
    @Import(name="ownerId")
    private @Nullable Output ownerId;

    /**
     * @return The ID of parent project (same as project_id).
     * 
     */
    public Optional> ownerId() {
        return Optional.ofNullable(this.ownerId);
    }

    /**
     * The ID of parent project.
     * 
     */
    @Import(name="projectId")
    private @Nullable Output projectId;

    /**
     * @return The ID of parent project.
     * 
     */
    public Optional> projectId() {
        return Optional.ofNullable(this.projectId);
    }

    /**
     * The public key. If this is a file, it can be read using the file interpolation function.
     * 
     */
    @Import(name="publicKey")
    private @Nullable Output publicKey;

    /**
     * @return The public key. If this is a file, it can be read using the file interpolation function.
     * 
     */
    public Optional> publicKey() {
        return Optional.ofNullable(this.publicKey);
    }

    /**
     * The timestamp for the last time the SSH key was updated.
     * 
     */
    @Import(name="updated")
    private @Nullable Output updated;

    /**
     * @return The timestamp for the last time the SSH key was updated.
     * 
     */
    public Optional> updated() {
        return Optional.ofNullable(this.updated);
    }

    private ProjectSshKeyState() {}

    private ProjectSshKeyState(ProjectSshKeyState $) {
        this.created = $.created;
        this.fingerprint = $.fingerprint;
        this.name = $.name;
        this.ownerId = $.ownerId;
        this.projectId = $.projectId;
        this.publicKey = $.publicKey;
        this.updated = $.updated;
    }

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

    public static final class Builder {
        private ProjectSshKeyState $;

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

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

        /**
         * @param created The timestamp for when the SSH key was created.
         * 
         * @return builder
         * 
         */
        public Builder created(@Nullable Output created) {
            $.created = created;
            return this;
        }

        /**
         * @param created The timestamp for when the SSH key was created.
         * 
         * @return builder
         * 
         */
        public Builder created(String created) {
            return created(Output.of(created));
        }

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

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

        /**
         * @param name The name of the SSH key for identification.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the SSH key for identification.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param ownerId The ID of parent project (same as project_id).
         * 
         * @return builder
         * 
         */
        public Builder ownerId(@Nullable Output ownerId) {
            $.ownerId = ownerId;
            return this;
        }

        /**
         * @param ownerId The ID of parent project (same as project_id).
         * 
         * @return builder
         * 
         */
        public Builder ownerId(String ownerId) {
            return ownerId(Output.of(ownerId));
        }

        /**
         * @param projectId The ID of parent project.
         * 
         * @return builder
         * 
         */
        public Builder projectId(@Nullable Output projectId) {
            $.projectId = projectId;
            return this;
        }

        /**
         * @param projectId The ID of parent project.
         * 
         * @return builder
         * 
         */
        public Builder projectId(String projectId) {
            return projectId(Output.of(projectId));
        }

        /**
         * @param publicKey The public key. If this is a file, it can be read using the file interpolation function.
         * 
         * @return builder
         * 
         */
        public Builder publicKey(@Nullable Output publicKey) {
            $.publicKey = publicKey;
            return this;
        }

        /**
         * @param publicKey The public key. If this is a file, it can be read using the file interpolation function.
         * 
         * @return builder
         * 
         */
        public Builder publicKey(String publicKey) {
            return publicKey(Output.of(publicKey));
        }

        /**
         * @param updated The timestamp for the last time the SSH key was updated.
         * 
         * @return builder
         * 
         */
        public Builder updated(@Nullable Output updated) {
            $.updated = updated;
            return this;
        }

        /**
         * @param updated The timestamp for the last time the SSH key was updated.
         * 
         * @return builder
         * 
         */
        public Builder updated(String updated) {
            return updated(Output.of(updated));
        }

        public ProjectSshKeyState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy