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

com.pulumi.azurenative.voiceservices.TestLineArgs 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.azurenative.voiceservices.enums.TestLinePurpose;
import com.pulumi.core.Either;
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 TestLineArgs extends com.pulumi.resources.ResourceArgs {

    public static final TestLineArgs Empty = new TestLineArgs();

    /**
     * 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;
    }

    /**
     * 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);
    }

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

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

    /**
     * Purpose of this test line, e.g. automated or manual testing
     * 
     */
    @Import(name="purpose", required=true)
    private Output> purpose;

    /**
     * @return Purpose of this test line, e.g. automated or manual testing
     * 
     */
    public Output> purpose() {
        return this.purpose;
    }

    /**
     * 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;
    }

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

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

    /**
     * Unique identifier for this test line
     * 
     */
    @Import(name="testLineName")
    private @Nullable Output testLineName;

    /**
     * @return Unique identifier for this test line
     * 
     */
    public Optional> testLineName() {
        return Optional.ofNullable(this.testLineName);
    }

    private TestLineArgs() {}

    private TestLineArgs(TestLineArgs $) {
        this.communicationsGatewayName = $.communicationsGatewayName;
        this.location = $.location;
        this.phoneNumber = $.phoneNumber;
        this.purpose = $.purpose;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
        this.testLineName = $.testLineName;
    }

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

    public static final class Builder {
        private TestLineArgs $;

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

        public Builder(TestLineArgs defaults) {
            $ = new TestLineArgs(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 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 The phone number
         * 
         * @return builder
         * 
         */
        public Builder phoneNumber(Output phoneNumber) {
            $.phoneNumber = phoneNumber;
            return this;
        }

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

        /**
         * @param purpose Purpose of this test line, e.g. automated or manual testing
         * 
         * @return builder
         * 
         */
        public Builder purpose(Output> purpose) {
            $.purpose = purpose;
            return this;
        }

        /**
         * @param purpose Purpose of this test line, e.g. automated or manual testing
         * 
         * @return builder
         * 
         */
        public Builder purpose(Either purpose) {
            return purpose(Output.of(purpose));
        }

        /**
         * @param purpose Purpose of this test line, e.g. automated or manual testing
         * 
         * @return builder
         * 
         */
        public Builder purpose(String purpose) {
            return purpose(Either.ofLeft(purpose));
        }

        /**
         * @param purpose Purpose of this test line, e.g. automated or manual testing
         * 
         * @return builder
         * 
         */
        public Builder purpose(TestLinePurpose purpose) {
            return purpose(Either.ofRight(purpose));
        }

        /**
         * @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 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));
        }

        /**
         * @param testLineName Unique identifier for this test line
         * 
         * @return builder
         * 
         */
        public Builder testLineName(@Nullable Output testLineName) {
            $.testLineName = testLineName;
            return this;
        }

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

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy