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

com.pulumi.azurenative.network.inputs.ConnectionMonitorTestGroupArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.network.inputs;

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


/**
 * Describes the connection monitor test group.
 * 
 */
public final class ConnectionMonitorTestGroupArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionMonitorTestGroupArgs Empty = new ConnectionMonitorTestGroupArgs();

    /**
     * List of destination endpoint names.
     * 
     */
    @Import(name="destinations", required=true)
    private Output> destinations;

    /**
     * @return List of destination endpoint names.
     * 
     */
    public Output> destinations() {
        return this.destinations;
    }

    /**
     * Value indicating whether test group is disabled.
     * 
     */
    @Import(name="disable")
    private @Nullable Output disable;

    /**
     * @return Value indicating whether test group is disabled.
     * 
     */
    public Optional> disable() {
        return Optional.ofNullable(this.disable);
    }

    /**
     * The name of the connection monitor test group.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name of the connection monitor test group.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * List of source endpoint names.
     * 
     */
    @Import(name="sources", required=true)
    private Output> sources;

    /**
     * @return List of source endpoint names.
     * 
     */
    public Output> sources() {
        return this.sources;
    }

    /**
     * List of test configuration names.
     * 
     */
    @Import(name="testConfigurations", required=true)
    private Output> testConfigurations;

    /**
     * @return List of test configuration names.
     * 
     */
    public Output> testConfigurations() {
        return this.testConfigurations;
    }

    private ConnectionMonitorTestGroupArgs() {}

    private ConnectionMonitorTestGroupArgs(ConnectionMonitorTestGroupArgs $) {
        this.destinations = $.destinations;
        this.disable = $.disable;
        this.name = $.name;
        this.sources = $.sources;
        this.testConfigurations = $.testConfigurations;
    }

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

    public static final class Builder {
        private ConnectionMonitorTestGroupArgs $;

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

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

        /**
         * @param destinations List of destination endpoint names.
         * 
         * @return builder
         * 
         */
        public Builder destinations(Output> destinations) {
            $.destinations = destinations;
            return this;
        }

        /**
         * @param destinations List of destination endpoint names.
         * 
         * @return builder
         * 
         */
        public Builder destinations(List destinations) {
            return destinations(Output.of(destinations));
        }

        /**
         * @param destinations List of destination endpoint names.
         * 
         * @return builder
         * 
         */
        public Builder destinations(String... destinations) {
            return destinations(List.of(destinations));
        }

        /**
         * @param disable Value indicating whether test group is disabled.
         * 
         * @return builder
         * 
         */
        public Builder disable(@Nullable Output disable) {
            $.disable = disable;
            return this;
        }

        /**
         * @param disable Value indicating whether test group is disabled.
         * 
         * @return builder
         * 
         */
        public Builder disable(Boolean disable) {
            return disable(Output.of(disable));
        }

        /**
         * @param name The name of the connection monitor test group.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the connection monitor test group.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param sources List of source endpoint names.
         * 
         * @return builder
         * 
         */
        public Builder sources(Output> sources) {
            $.sources = sources;
            return this;
        }

        /**
         * @param sources List of source endpoint names.
         * 
         * @return builder
         * 
         */
        public Builder sources(List sources) {
            return sources(Output.of(sources));
        }

        /**
         * @param sources List of source endpoint names.
         * 
         * @return builder
         * 
         */
        public Builder sources(String... sources) {
            return sources(List.of(sources));
        }

        /**
         * @param testConfigurations List of test configuration names.
         * 
         * @return builder
         * 
         */
        public Builder testConfigurations(Output> testConfigurations) {
            $.testConfigurations = testConfigurations;
            return this;
        }

        /**
         * @param testConfigurations List of test configuration names.
         * 
         * @return builder
         * 
         */
        public Builder testConfigurations(List testConfigurations) {
            return testConfigurations(Output.of(testConfigurations));
        }

        /**
         * @param testConfigurations List of test configuration names.
         * 
         * @return builder
         * 
         */
        public Builder testConfigurations(String... testConfigurations) {
            return testConfigurations(List.of(testConfigurations));
        }

        public ConnectionMonitorTestGroupArgs build() {
            if ($.destinations == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupArgs", "destinations");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupArgs", "name");
            }
            if ($.sources == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupArgs", "sources");
            }
            if ($.testConfigurations == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupArgs", "testConfigurations");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy