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

com.pulumi.azurenative.databox.inputs.ContactInfoArgs Maven / Gradle / Ivy

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


/**
 * Contact Info.
 * 
 */
public final class ContactInfoArgs extends com.pulumi.resources.ResourceArgs {

    public static final ContactInfoArgs Empty = new ContactInfoArgs();

    /**
     * Contact name of the person.
     * 
     */
    @Import(name="contactName", required=true)
    private Output contactName;

    /**
     * @return Contact name of the person.
     * 
     */
    public Output contactName() {
        return this.contactName;
    }

    /**
     * Mobile number of the contact person.
     * 
     */
    @Import(name="mobile")
    private @Nullable Output mobile;

    /**
     * @return Mobile number of the contact person.
     * 
     */
    public Optional> mobile() {
        return Optional.ofNullable(this.mobile);
    }

    /**
     * Phone number of the contact person.
     * 
     */
    @Import(name="phone", required=true)
    private Output phone;

    /**
     * @return Phone number of the contact person.
     * 
     */
    public Output phone() {
        return this.phone;
    }

    /**
     * Phone extension number of the contact person.
     * 
     */
    @Import(name="phoneExtension")
    private @Nullable Output phoneExtension;

    /**
     * @return Phone extension number of the contact person.
     * 
     */
    public Optional> phoneExtension() {
        return Optional.ofNullable(this.phoneExtension);
    }

    private ContactInfoArgs() {}

    private ContactInfoArgs(ContactInfoArgs $) {
        this.contactName = $.contactName;
        this.mobile = $.mobile;
        this.phone = $.phone;
        this.phoneExtension = $.phoneExtension;
    }

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

    public static final class Builder {
        private ContactInfoArgs $;

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

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

        /**
         * @param contactName Contact name of the person.
         * 
         * @return builder
         * 
         */
        public Builder contactName(Output contactName) {
            $.contactName = contactName;
            return this;
        }

        /**
         * @param contactName Contact name of the person.
         * 
         * @return builder
         * 
         */
        public Builder contactName(String contactName) {
            return contactName(Output.of(contactName));
        }

        /**
         * @param mobile Mobile number of the contact person.
         * 
         * @return builder
         * 
         */
        public Builder mobile(@Nullable Output mobile) {
            $.mobile = mobile;
            return this;
        }

        /**
         * @param mobile Mobile number of the contact person.
         * 
         * @return builder
         * 
         */
        public Builder mobile(String mobile) {
            return mobile(Output.of(mobile));
        }

        /**
         * @param phone Phone number of the contact person.
         * 
         * @return builder
         * 
         */
        public Builder phone(Output phone) {
            $.phone = phone;
            return this;
        }

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

        /**
         * @param phoneExtension Phone extension number of the contact person.
         * 
         * @return builder
         * 
         */
        public Builder phoneExtension(@Nullable Output phoneExtension) {
            $.phoneExtension = phoneExtension;
            return this;
        }

        /**
         * @param phoneExtension Phone extension number of the contact person.
         * 
         * @return builder
         * 
         */
        public Builder phoneExtension(String phoneExtension) {
            return phoneExtension(Output.of(phoneExtension));
        }

        public ContactInfoArgs build() {
            if ($.contactName == null) {
                throw new MissingRequiredPropertyException("ContactInfoArgs", "contactName");
            }
            if ($.phone == null) {
                throw new MissingRequiredPropertyException("ContactInfoArgs", "phone");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy