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

com.pulumi.azurenative.voiceservices.ContactArgs 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.voiceservices;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ContactArgs Empty = new ContactArgs();

    /**
     * Unique identifier for this deployment
     * 
     */
    @Import(name="communicationsGatewayName", required=true)
    private Output communicationsGatewayName;

    /**
     * @return Unique identifier for this deployment
     * 
     */
    public Output communicationsGatewayName() {
        return this.communicationsGatewayName;
    }

    /**
     * Full name of contact
     * 
     */
    @Import(name="contactName")
    private @Nullable Output contactName;

    /**
     * @return Full name of contact
     * 
     */
    public Optional> contactName() {
        return Optional.ofNullable(this.contactName);
    }

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

    /**
     * @return Email address of contact
     * 
     */
    public Output email() {
        return this.email;
    }

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Telephone number of contact
     * 
     */
    @Import(name="phoneNumber", required=true)
    private Output phoneNumber;

    /**
     * @return Telephone number of contact
     * 
     */
    public Output phoneNumber() {
        return this.phoneNumber;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Job title of contact
     * 
     */
    @Import(name="role", required=true)
    private Output role;

    /**
     * @return Job title of contact
     * 
     */
    public Output role() {
        return this.role;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ContactArgs() {}

    private ContactArgs(ContactArgs $) {
        this.communicationsGatewayName = $.communicationsGatewayName;
        this.contactName = $.contactName;
        this.email = $.email;
        this.location = $.location;
        this.phoneNumber = $.phoneNumber;
        this.resourceGroupName = $.resourceGroupName;
        this.role = $.role;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ContactArgs $;

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

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

        /**
         * @param communicationsGatewayName Unique identifier for this deployment
         * 
         * @return builder
         * 
         */
        public Builder communicationsGatewayName(Output communicationsGatewayName) {
            $.communicationsGatewayName = communicationsGatewayName;
            return this;
        }

        /**
         * @param communicationsGatewayName Unique identifier for this deployment
         * 
         * @return builder
         * 
         */
        public Builder communicationsGatewayName(String communicationsGatewayName) {
            return communicationsGatewayName(Output.of(communicationsGatewayName));
        }

        /**
         * @param contactName Full name of contact
         * 
         * @return builder
         * 
         */
        public Builder contactName(@Nullable Output contactName) {
            $.contactName = contactName;
            return this;
        }

        /**
         * @param contactName Full name of contact
         * 
         * @return builder
         * 
         */
        public Builder contactName(String contactName) {
            return contactName(Output.of(contactName));
        }

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

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

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param phoneNumber Telephone number of contact
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(Output phoneNumber) {
            $.phoneNumber = phoneNumber;
            return this;
        }

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

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param role Job title of contact
         * 
         * @return builder
         * 
         */
        public Builder role(Output role) {
            $.role = role;
            return this;
        }

        /**
         * @param role Job title of contact
         * 
         * @return builder
         * 
         */
        public Builder role(String role) {
            return role(Output.of(role));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ContactArgs build() {
            if ($.communicationsGatewayName == null) {
                throw new MissingRequiredPropertyException("ContactArgs", "communicationsGatewayName");
            }
            if ($.email == null) {
                throw new MissingRequiredPropertyException("ContactArgs", "email");
            }
            if ($.phoneNumber == null) {
                throw new MissingRequiredPropertyException("ContactArgs", "phoneNumber");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ContactArgs", "resourceGroupName");
            }
            if ($.role == null) {
                throw new MissingRequiredPropertyException("ContactArgs", "role");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy