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

com.pulumi.azurenative.network.inputs.ConnectionMonitorSourceArgs 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.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes the source of connection monitor.
 * 
 */
public final class ConnectionMonitorSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ConnectionMonitorSourceArgs Empty = new ConnectionMonitorSourceArgs();

    /**
     * The source port used by connection monitor.
     * 
     */
    @Import(name="port")
    private @Nullable Output port;

    /**
     * @return The source port used by connection monitor.
     * 
     */
    public Optional> port() {
        return Optional.ofNullable(this.port);
    }

    /**
     * The ID of the resource used as the source by connection monitor.
     * 
     */
    @Import(name="resourceId", required=true)
    private Output resourceId;

    /**
     * @return The ID of the resource used as the source by connection monitor.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    private ConnectionMonitorSourceArgs() {}

    private ConnectionMonitorSourceArgs(ConnectionMonitorSourceArgs $) {
        this.port = $.port;
        this.resourceId = $.resourceId;
    }

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

    public static final class Builder {
        private ConnectionMonitorSourceArgs $;

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

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

        /**
         * @param port The source port used by connection monitor.
         * 
         * @return builder
         * 
         */
        public Builder port(@Nullable Output port) {
            $.port = port;
            return this;
        }

        /**
         * @param port The source port used by connection monitor.
         * 
         * @return builder
         * 
         */
        public Builder port(Integer port) {
            return port(Output.of(port));
        }

        /**
         * @param resourceId The ID of the resource used as the source by connection monitor.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(Output resourceId) {
            $.resourceId = resourceId;
            return this;
        }

        /**
         * @param resourceId The ID of the resource used as the source by connection monitor.
         * 
         * @return builder
         * 
         */
        public Builder resourceId(String resourceId) {
            return resourceId(Output.of(resourceId));
        }

        public ConnectionMonitorSourceArgs build() {
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("ConnectionMonitorSourceArgs", "resourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy