// *** 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.aws.account;

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 AlternativeContactArgs extends com.pulumi.resources.ResourceArgs {

    public static final AlternativeContactArgs Empty = new AlternativeContactArgs();

    /**
     * ID of the target account when managing member accounts. Will manage current user&#39;s account by default if omitted.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output<String> accountId;

    /**
     * @return ID of the target account when managing member accounts. Will manage current user&#39;s account by default if omitted.
     * 
     */
    public Optional<Output<String>> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
     * 
     */
    @Import(name="alternateContactType", required=true)
    private Output<String> alternateContactType;

    /**
     * @return Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
     * 
     */
    public Output<String> alternateContactType() {
        return this.alternateContactType;
    }

    /**
     * An email address for the alternate contact.
     * 
     */
    @Import(name="emailAddress", required=true)
    private Output<String> emailAddress;

    /**
     * @return An email address for the alternate contact.
     * 
     */
    public Output<String> emailAddress() {
        return this.emailAddress;
    }

    /**
     * Name of the alternate contact.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Name of the alternate contact.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Phone number for the alternate contact.
     * 
     */
    @Import(name="phoneNumber", required=true)
    private Output<String> phoneNumber;

    /**
     * @return Phone number for the alternate contact.
     * 
     */
    public Output<String> phoneNumber() {
        return this.phoneNumber;
    }

    /**
     * Title for the alternate contact.
     * 
     */
    @Import(name="title", required=true)
    private Output<String> title;

    /**
     * @return Title for the alternate contact.
     * 
     */
    public Output<String> title() {
        return this.title;
    }

    private AlternativeContactArgs() {}

    private AlternativeContactArgs(AlternativeContactArgs $) {
        this.accountId = $.accountId;
        this.alternateContactType = $.alternateContactType;
        this.emailAddress = $.emailAddress;
        this.name = $.name;
        this.phoneNumber = $.phoneNumber;
        this.title = $.title;
    }

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

    public static final class Builder {
        private AlternativeContactArgs $;

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

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

        /**
         * @param accountId ID of the target account when managing member accounts. Will manage current user&#39;s account by default if omitted.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output<String> accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId ID of the target account when managing member accounts. Will manage current user&#39;s account by default if omitted.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param alternateContactType Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
         * 
         * @return builder
         * 
         */
        public Builder alternateContactType(Output<String> alternateContactType) {
            $.alternateContactType = alternateContactType;
            return this;
        }

        /**
         * @param alternateContactType Type of the alternate contact. Allowed values are: `BILLING`, `OPERATIONS`, `SECURITY`.
         * 
         * @return builder
         * 
         */
        public Builder alternateContactType(String alternateContactType) {
            return alternateContactType(Output.of(alternateContactType));
        }

        /**
         * @param emailAddress An email address for the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(Output<String> emailAddress) {
            $.emailAddress = emailAddress;
            return this;
        }

        /**
         * @param emailAddress An email address for the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(String emailAddress) {
            return emailAddress(Output.of(emailAddress));
        }

        /**
         * @param name Name of the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param phoneNumber Phone number for the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(Output<String> phoneNumber) {
            $.phoneNumber = phoneNumber;
            return this;
        }

        /**
         * @param phoneNumber Phone number for the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(String phoneNumber) {
            return phoneNumber(Output.of(phoneNumber));
        }

        /**
         * @param title Title for the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder title(Output<String> title) {
            $.title = title;
            return this;
        }

        /**
         * @param title Title for the alternate contact.
         * 
         * @return builder
         * 
         */
        public Builder title(String title) {
            return title(Output.of(title));
        }

        public AlternativeContactArgs build() {
            $.alternateContactType = Objects.requireNonNull($.alternateContactType, "expected parameter 'alternateContactType' to be non-null");
            $.emailAddress = Objects.requireNonNull($.emailAddress, "expected parameter 'emailAddress' to be non-null");
            $.phoneNumber = Objects.requireNonNull($.phoneNumber, "expected parameter 'phoneNumber' to be non-null");
            $.title = Objects.requireNonNull($.title, "expected parameter 'title' to be non-null");
            return $;
        }
    }

}
