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

com.pulumi.azurenative.insights.inputs.VoiceReceiverArgs 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.insights.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;


/**
 * A voice receiver.
 * 
 */
public final class VoiceReceiverArgs extends com.pulumi.resources.ResourceArgs {

    public static final VoiceReceiverArgs Empty = new VoiceReceiverArgs();

    /**
     * The country code of the voice receiver.
     * 
     */
    @Import(name="countryCode", required=true)
    private Output countryCode;

    /**
     * @return The country code of the voice receiver.
     * 
     */
    public Output countryCode() {
        return this.countryCode;
    }

    /**
     * The name of the voice receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the voice receiver. Names must be unique across all receivers within a tenant action group.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The phone number of the voice receiver.
     * 
     */
    @Import(name="phoneNumber", required=true)
    private Output phoneNumber;

    /**
     * @return The phone number of the voice receiver.
     * 
     */
    public Output phoneNumber() {
        return this.phoneNumber;
    }

    private VoiceReceiverArgs() {}

    private VoiceReceiverArgs(VoiceReceiverArgs $) {
        this.countryCode = $.countryCode;
        this.name = $.name;
        this.phoneNumber = $.phoneNumber;
    }

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

    public static final class Builder {
        private VoiceReceiverArgs $;

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

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

        /**
         * @param countryCode The country code of the voice receiver.
         * 
         * @return builder
         * 
         */
        public Builder countryCode(Output countryCode) {
            $.countryCode = countryCode;
            return this;
        }

        /**
         * @param countryCode The country code of the voice receiver.
         * 
         * @return builder
         * 
         */
        public Builder countryCode(String countryCode) {
            return countryCode(Output.of(countryCode));
        }

        /**
         * @param name The name of the voice receiver. Names must be unique across all receivers within a tenant action group.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the voice receiver. Names must be unique across all receivers within a tenant action group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param phoneNumber The phone number of the voice receiver.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(Output phoneNumber) {
            $.phoneNumber = phoneNumber;
            return this;
        }

        /**
         * @param phoneNumber The phone number of the voice receiver.
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(String phoneNumber) {
            return phoneNumber(Output.of(phoneNumber));
        }

        public VoiceReceiverArgs build() {
            if ($.countryCode == null) {
                throw new MissingRequiredPropertyException("VoiceReceiverArgs", "countryCode");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("VoiceReceiverArgs", "name");
            }
            if ($.phoneNumber == null) {
                throw new MissingRequiredPropertyException("VoiceReceiverArgs", "phoneNumber");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy