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

com.pulumi.azure.storage.outputs.LocalUserSshAuthorizedKey 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.azure.storage.outputs;

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

@CustomType
public final class LocalUserSshAuthorizedKey {
    /**
     * @return The description of this SSH authorized key.
     * 
     */
    private @Nullable String description;
    /**
     * @return The public key value of this SSH authorized key.
     * 
     */
    private String key;

    private LocalUserSshAuthorizedKey() {}
    /**
     * @return The description of this SSH authorized key.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The public key value of this SSH authorized key.
     * 
     */
    public String key() {
        return this.key;
    }

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

    public static Builder builder(LocalUserSshAuthorizedKey defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String description;
        private String key;
        public Builder() {}
        public Builder(LocalUserSshAuthorizedKey defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.description = defaults.description;
    	      this.key = defaults.key;
        }

        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder key(String key) {
            if (key == null) {
              throw new MissingRequiredPropertyException("LocalUserSshAuthorizedKey", "key");
            }
            this.key = key;
            return this;
        }
        public LocalUserSshAuthorizedKey build() {
            final var _resultValue = new LocalUserSshAuthorizedKey();
            _resultValue.description = description;
            _resultValue.key = key;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy