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

com.pulumi.azurenative.peering.ConnectionMonitorTestArgs 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.peering;

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


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

    public static final ConnectionMonitorTestArgs Empty = new ConnectionMonitorTestArgs();

    /**
     * The name of the connection monitor test
     * 
     */
    @Import(name="connectionMonitorTestName")
    private @Nullable Output connectionMonitorTestName;

    /**
     * @return The name of the connection monitor test
     * 
     */
    public Optional> connectionMonitorTestName() {
        return Optional.ofNullable(this.connectionMonitorTestName);
    }

    /**
     * The Connection Monitor test destination
     * 
     */
    @Import(name="destination")
    private @Nullable Output destination;

    /**
     * @return The Connection Monitor test destination
     * 
     */
    public Optional> destination() {
        return Optional.ofNullable(this.destination);
    }

    /**
     * The Connection Monitor test destination port
     * 
     */
    @Import(name="destinationPort")
    private @Nullable Output destinationPort;

    /**
     * @return The Connection Monitor test destination port
     * 
     */
    public Optional> destinationPort() {
        return Optional.ofNullable(this.destinationPort);
    }

    /**
     * The name of the peering service.
     * 
     */
    @Import(name="peeringServiceName", required=true)
    private Output peeringServiceName;

    /**
     * @return The name of the peering service.
     * 
     */
    public Output peeringServiceName() {
        return this.peeringServiceName;
    }

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

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

    /**
     * The Connection Monitor test source agent
     * 
     */
    @Import(name="sourceAgent")
    private @Nullable Output sourceAgent;

    /**
     * @return The Connection Monitor test source agent
     * 
     */
    public Optional> sourceAgent() {
        return Optional.ofNullable(this.sourceAgent);
    }

    /**
     * The Connection Monitor test frequency in seconds
     * 
     */
    @Import(name="testFrequencyInSec")
    private @Nullable Output testFrequencyInSec;

    /**
     * @return The Connection Monitor test frequency in seconds
     * 
     */
    public Optional> testFrequencyInSec() {
        return Optional.ofNullable(this.testFrequencyInSec);
    }

    private ConnectionMonitorTestArgs() {}

    private ConnectionMonitorTestArgs(ConnectionMonitorTestArgs $) {
        this.connectionMonitorTestName = $.connectionMonitorTestName;
        this.destination = $.destination;
        this.destinationPort = $.destinationPort;
        this.peeringServiceName = $.peeringServiceName;
        this.resourceGroupName = $.resourceGroupName;
        this.sourceAgent = $.sourceAgent;
        this.testFrequencyInSec = $.testFrequencyInSec;
    }

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

    public static final class Builder {
        private ConnectionMonitorTestArgs $;

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

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

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

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

        /**
         * @param destination The Connection Monitor test destination
         * 
         * @return builder
         * 
         */
        public Builder destination(@Nullable Output destination) {
            $.destination = destination;
            return this;
        }

        /**
         * @param destination The Connection Monitor test destination
         * 
         * @return builder
         * 
         */
        public Builder destination(String destination) {
            return destination(Output.of(destination));
        }

        /**
         * @param destinationPort The Connection Monitor test destination port
         * 
         * @return builder
         * 
         */
        public Builder destinationPort(@Nullable Output destinationPort) {
            $.destinationPort = destinationPort;
            return this;
        }

        /**
         * @param destinationPort The Connection Monitor test destination port
         * 
         * @return builder
         * 
         */
        public Builder destinationPort(Integer destinationPort) {
            return destinationPort(Output.of(destinationPort));
        }

        /**
         * @param peeringServiceName The name of the peering service.
         * 
         * @return builder
         * 
         */
        public Builder peeringServiceName(Output peeringServiceName) {
            $.peeringServiceName = peeringServiceName;
            return this;
        }

        /**
         * @param peeringServiceName The name of the peering service.
         * 
         * @return builder
         * 
         */
        public Builder peeringServiceName(String peeringServiceName) {
            return peeringServiceName(Output.of(peeringServiceName));
        }

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

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

        /**
         * @param sourceAgent The Connection Monitor test source agent
         * 
         * @return builder
         * 
         */
        public Builder sourceAgent(@Nullable Output sourceAgent) {
            $.sourceAgent = sourceAgent;
            return this;
        }

        /**
         * @param sourceAgent The Connection Monitor test source agent
         * 
         * @return builder
         * 
         */
        public Builder sourceAgent(String sourceAgent) {
            return sourceAgent(Output.of(sourceAgent));
        }

        /**
         * @param testFrequencyInSec The Connection Monitor test frequency in seconds
         * 
         * @return builder
         * 
         */
        public Builder testFrequencyInSec(@Nullable Output testFrequencyInSec) {
            $.testFrequencyInSec = testFrequencyInSec;
            return this;
        }

        /**
         * @param testFrequencyInSec The Connection Monitor test frequency in seconds
         * 
         * @return builder
         * 
         */
        public Builder testFrequencyInSec(Integer testFrequencyInSec) {
            return testFrequencyInSec(Output.of(testFrequencyInSec));
        }

        public ConnectionMonitorTestArgs build() {
            if ($.peeringServiceName == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorTestArgs", "peeringServiceName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorTestArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy