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

com.pulumi.azurenative.networkcloud.outputs.KeySetUserResponse Maven / Gradle / Ivy

There is a newer version: 2.82.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.pulumi.azurenative.networkcloud.outputs;

import com.pulumi.azurenative.networkcloud.outputs.SshPublicKeyResponse;
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 KeySetUserResponse {
    /**
     * @return The user name that will be used for access.
     * 
     */
    private String azureUserName;
    /**
     * @return The free-form description for this user.
     * 
     */
    private @Nullable String description;
    /**
     * @return The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
     * 
     */
    private SshPublicKeyResponse sshPublicKey;
    /**
     * @return The user principal name (email format) used to validate this user's group membership.
     * 
     */
    private @Nullable String userPrincipalName;

    private KeySetUserResponse() {}
    /**
     * @return The user name that will be used for access.
     * 
     */
    public String azureUserName() {
        return this.azureUserName;
    }
    /**
     * @return The free-form description for this user.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The SSH public key that will be provisioned for user access. The user is expected to have the corresponding SSH private key for logging in.
     * 
     */
    public SshPublicKeyResponse sshPublicKey() {
        return this.sshPublicKey;
    }
    /**
     * @return The user principal name (email format) used to validate this user's group membership.
     * 
     */
    public Optional userPrincipalName() {
        return Optional.ofNullable(this.userPrincipalName);
    }

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

    public static Builder builder(KeySetUserResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String azureUserName;
        private @Nullable String description;
        private SshPublicKeyResponse sshPublicKey;
        private @Nullable String userPrincipalName;
        public Builder() {}
        public Builder(KeySetUserResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.azureUserName = defaults.azureUserName;
    	      this.description = defaults.description;
    	      this.sshPublicKey = defaults.sshPublicKey;
    	      this.userPrincipalName = defaults.userPrincipalName;
        }

        @CustomType.Setter
        public Builder azureUserName(String azureUserName) {
            if (azureUserName == null) {
              throw new MissingRequiredPropertyException("KeySetUserResponse", "azureUserName");
            }
            this.azureUserName = azureUserName;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder sshPublicKey(SshPublicKeyResponse sshPublicKey) {
            if (sshPublicKey == null) {
              throw new MissingRequiredPropertyException("KeySetUserResponse", "sshPublicKey");
            }
            this.sshPublicKey = sshPublicKey;
            return this;
        }
        @CustomType.Setter
        public Builder userPrincipalName(@Nullable String userPrincipalName) {

            this.userPrincipalName = userPrincipalName;
            return this;
        }
        public KeySetUserResponse build() {
            final var _resultValue = new KeySetUserResponse();
            _resultValue.azureUserName = azureUserName;
            _resultValue.description = description;
            _resultValue.sshPublicKey = sshPublicKey;
            _resultValue.userPrincipalName = userPrincipalName;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy