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

com.pulumi.keycloak.inputs.RealmSmtpServerAuthArgs Maven / Gradle / Ivy

The 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.keycloak.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;


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

    public static final RealmSmtpServerAuthArgs Empty = new RealmSmtpServerAuthArgs();

    /**
     * The SMTP server password.
     * 
     */
    @Import(name="password", required=true)
    private Output password;

    /**
     * @return The SMTP server password.
     * 
     */
    public Output password() {
        return this.password;
    }

    /**
     * The SMTP server username.
     * 
     */
    @Import(name="username", required=true)
    private Output username;

    /**
     * @return The SMTP server username.
     * 
     */
    public Output username() {
        return this.username;
    }

    private RealmSmtpServerAuthArgs() {}

    private RealmSmtpServerAuthArgs(RealmSmtpServerAuthArgs $) {
        this.password = $.password;
        this.username = $.username;
    }

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

    public static final class Builder {
        private RealmSmtpServerAuthArgs $;

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

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

        /**
         * @param password The SMTP server password.
         * 
         * @return builder
         * 
         */
        public Builder password(Output password) {
            $.password = password;
            return this;
        }

        /**
         * @param password The SMTP server password.
         * 
         * @return builder
         * 
         */
        public Builder password(String password) {
            return password(Output.of(password));
        }

        /**
         * @param username The SMTP server username.
         * 
         * @return builder
         * 
         */
        public Builder username(Output username) {
            $.username = username;
            return this;
        }

        /**
         * @param username The SMTP server username.
         * 
         * @return builder
         * 
         */
        public Builder username(String username) {
            return username(Output.of(username));
        }

        public RealmSmtpServerAuthArgs build() {
            if ($.password == null) {
                throw new MissingRequiredPropertyException("RealmSmtpServerAuthArgs", "password");
            }
            if ($.username == null) {
                throw new MissingRequiredPropertyException("RealmSmtpServerAuthArgs", "username");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy