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

com.pulumi.azurenative.confluent.inputs.UserDetailArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.confluent.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;


/**
 * Subscriber detail
 * 
 */
public final class UserDetailArgs extends com.pulumi.resources.ResourceArgs {

    public static final UserDetailArgs Empty = new UserDetailArgs();

    /**
     * Email address
     * 
     */
    @Import(name="emailAddress", required=true)
    private Output emailAddress;

    /**
     * @return Email address
     * 
     */
    public Output emailAddress() {
        return this.emailAddress;
    }

    /**
     * First name
     * 
     */
    @Import(name="firstName")
    private @Nullable Output firstName;

    /**
     * @return First name
     * 
     */
    public Optional> firstName() {
        return Optional.ofNullable(this.firstName);
    }

    /**
     * Last name
     * 
     */
    @Import(name="lastName")
    private @Nullable Output lastName;

    /**
     * @return Last name
     * 
     */
    public Optional> lastName() {
        return Optional.ofNullable(this.lastName);
    }

    private UserDetailArgs() {}

    private UserDetailArgs(UserDetailArgs $) {
        this.emailAddress = $.emailAddress;
        this.firstName = $.firstName;
        this.lastName = $.lastName;
    }

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

    public static final class Builder {
        private UserDetailArgs $;

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

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

        /**
         * @param emailAddress Email address
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(Output emailAddress) {
            $.emailAddress = emailAddress;
            return this;
        }

        /**
         * @param emailAddress Email address
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(String emailAddress) {
            return emailAddress(Output.of(emailAddress));
        }

        /**
         * @param firstName First name
         * 
         * @return builder
         * 
         */
        public Builder firstName(@Nullable Output firstName) {
            $.firstName = firstName;
            return this;
        }

        /**
         * @param firstName First name
         * 
         * @return builder
         * 
         */
        public Builder firstName(String firstName) {
            return firstName(Output.of(firstName));
        }

        /**
         * @param lastName Last name
         * 
         * @return builder
         * 
         */
        public Builder lastName(@Nullable Output lastName) {
            $.lastName = lastName;
            return this;
        }

        /**
         * @param lastName Last name
         * 
         * @return builder
         * 
         */
        public Builder lastName(String lastName) {
            return lastName(Output.of(lastName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy