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

com.pulumi.azure.voice.ServicesCommunicationsGatewayTestLineArgs Maven / Gradle / Ivy

// *** 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.azure.voice;

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

    public static final ServicesCommunicationsGatewayTestLineArgs Empty = new ServicesCommunicationsGatewayTestLineArgs();

    /**
     * Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

    /**
     * @return Specifies the phone number.
     * 
     */
    public Output phoneNumber() {
        return this.phoneNumber;
    }

    /**
     * The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
     * 
     */
    @Import(name="purpose", required=true)
    private Output purpose;

    /**
     * @return The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
     * 
     */
    public Output purpose() {
        return this.purpose;
    }

    /**
     * A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="voiceServicesCommunicationsGatewayId", required=true)
    private Output voiceServicesCommunicationsGatewayId;

    /**
     * @return Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
     * 
     */
    public Output voiceServicesCommunicationsGatewayId() {
        return this.voiceServicesCommunicationsGatewayId;
    }

    private ServicesCommunicationsGatewayTestLineArgs() {}

    private ServicesCommunicationsGatewayTestLineArgs(ServicesCommunicationsGatewayTestLineArgs $) {
        this.location = $.location;
        this.name = $.name;
        this.phoneNumber = $.phoneNumber;
        this.purpose = $.purpose;
        this.tags = $.tags;
        this.voiceServicesCommunicationsGatewayId = $.voiceServicesCommunicationsGatewayId;
    }

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

    public static final class Builder {
        private ServicesCommunicationsGatewayTestLineArgs $;

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

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

        /**
         * @param location Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the Azure Region where the Voice Services Communications Gateway Test Line should exist. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name which should be used for this Voice Services Communications Gateway Test Line. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

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

        /**
         * @param purpose The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
         * 
         * @return builder
         * 
         */
        public Builder purpose(Output purpose) {
            $.purpose = purpose;
            return this;
        }

        /**
         * @param purpose The purpose of the Voice Services Communications Gateway Test Line. Possible values are `Automated` or `Manual`.
         * 
         * @return builder
         * 
         */
        public Builder purpose(String purpose) {
            return purpose(Output.of(purpose));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Voice Services Communications Gateway Test Line.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param voiceServicesCommunicationsGatewayId Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder voiceServicesCommunicationsGatewayId(Output voiceServicesCommunicationsGatewayId) {
            $.voiceServicesCommunicationsGatewayId = voiceServicesCommunicationsGatewayId;
            return this;
        }

        /**
         * @param voiceServicesCommunicationsGatewayId Specifies the ID of the Voice Services Communications Gateway. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder voiceServicesCommunicationsGatewayId(String voiceServicesCommunicationsGatewayId) {
            return voiceServicesCommunicationsGatewayId(Output.of(voiceServicesCommunicationsGatewayId));
        }

        public ServicesCommunicationsGatewayTestLineArgs build() {
            if ($.phoneNumber == null) {
                throw new MissingRequiredPropertyException("ServicesCommunicationsGatewayTestLineArgs", "phoneNumber");
            }
            if ($.purpose == null) {
                throw new MissingRequiredPropertyException("ServicesCommunicationsGatewayTestLineArgs", "purpose");
            }
            if ($.voiceServicesCommunicationsGatewayId == null) {
                throw new MissingRequiredPropertyException("ServicesCommunicationsGatewayTestLineArgs", "voiceServicesCommunicationsGatewayId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy