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

com.pulumi.azurenative.managednetworkfabric.NetworkTapArgs 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.managednetworkfabric;

import com.pulumi.azurenative.managednetworkfabric.enums.PollingType;
import com.pulumi.azurenative.managednetworkfabric.inputs.NetworkTapPropertiesDestinationsArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NetworkTapArgs Empty = new NetworkTapArgs();

    /**
     * Switch configuration description.
     * 
     */
    @Import(name="annotation")
    private @Nullable Output annotation;

    /**
     * @return Switch configuration description.
     * 
     */
    public Optional> annotation() {
        return Optional.ofNullable(this.annotation);
    }

    /**
     * List of destinations to send the filter traffic.
     * 
     */
    @Import(name="destinations", required=true)
    private Output> destinations;

    /**
     * @return List of destinations to send the filter traffic.
     * 
     */
    public Output> destinations() {
        return this.destinations;
    }

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

    /**
     * ARM resource ID of the Network Packet Broker.
     * 
     */
    @Import(name="networkPacketBrokerId", required=true)
    private Output networkPacketBrokerId;

    /**
     * @return ARM resource ID of the Network Packet Broker.
     * 
     */
    public Output networkPacketBrokerId() {
        return this.networkPacketBrokerId;
    }

    /**
     * Name of the Network Tap.
     * 
     */
    @Import(name="networkTapName")
    private @Nullable Output networkTapName;

    /**
     * @return Name of the Network Tap.
     * 
     */
    public Optional> networkTapName() {
        return Optional.ofNullable(this.networkTapName);
    }

    /**
     * Polling type.
     * 
     */
    @Import(name="pollingType")
    private @Nullable Output> pollingType;

    /**
     * @return Polling type.
     * 
     */
    public Optional>> pollingType() {
        return Optional.ofNullable(this.pollingType);
    }

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

    private NetworkTapArgs() {}

    private NetworkTapArgs(NetworkTapArgs $) {
        this.annotation = $.annotation;
        this.destinations = $.destinations;
        this.location = $.location;
        this.networkPacketBrokerId = $.networkPacketBrokerId;
        this.networkTapName = $.networkTapName;
        this.pollingType = $.pollingType;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private NetworkTapArgs $;

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

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

        /**
         * @param annotation Switch configuration description.
         * 
         * @return builder
         * 
         */
        public Builder annotation(@Nullable Output annotation) {
            $.annotation = annotation;
            return this;
        }

        /**
         * @param annotation Switch configuration description.
         * 
         * @return builder
         * 
         */
        public Builder annotation(String annotation) {
            return annotation(Output.of(annotation));
        }

        /**
         * @param destinations List of destinations to send the filter traffic.
         * 
         * @return builder
         * 
         */
        public Builder destinations(Output> destinations) {
            $.destinations = destinations;
            return this;
        }

        /**
         * @param destinations List of destinations to send the filter traffic.
         * 
         * @return builder
         * 
         */
        public Builder destinations(List destinations) {
            return destinations(Output.of(destinations));
        }

        /**
         * @param destinations List of destinations to send the filter traffic.
         * 
         * @return builder
         * 
         */
        public Builder destinations(NetworkTapPropertiesDestinationsArgs... destinations) {
            return destinations(List.of(destinations));
        }

        /**
         * @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 networkPacketBrokerId ARM resource ID of the Network Packet Broker.
         * 
         * @return builder
         * 
         */
        public Builder networkPacketBrokerId(Output networkPacketBrokerId) {
            $.networkPacketBrokerId = networkPacketBrokerId;
            return this;
        }

        /**
         * @param networkPacketBrokerId ARM resource ID of the Network Packet Broker.
         * 
         * @return builder
         * 
         */
        public Builder networkPacketBrokerId(String networkPacketBrokerId) {
            return networkPacketBrokerId(Output.of(networkPacketBrokerId));
        }

        /**
         * @param networkTapName Name of the Network Tap.
         * 
         * @return builder
         * 
         */
        public Builder networkTapName(@Nullable Output networkTapName) {
            $.networkTapName = networkTapName;
            return this;
        }

        /**
         * @param networkTapName Name of the Network Tap.
         * 
         * @return builder
         * 
         */
        public Builder networkTapName(String networkTapName) {
            return networkTapName(Output.of(networkTapName));
        }

        /**
         * @param pollingType Polling type.
         * 
         * @return builder
         * 
         */
        public Builder pollingType(@Nullable Output> pollingType) {
            $.pollingType = pollingType;
            return this;
        }

        /**
         * @param pollingType Polling type.
         * 
         * @return builder
         * 
         */
        public Builder pollingType(Either pollingType) {
            return pollingType(Output.of(pollingType));
        }

        /**
         * @param pollingType Polling type.
         * 
         * @return builder
         * 
         */
        public Builder pollingType(String pollingType) {
            return pollingType(Either.ofLeft(pollingType));
        }

        /**
         * @param pollingType Polling type.
         * 
         * @return builder
         * 
         */
        public Builder pollingType(PollingType pollingType) {
            return pollingType(Either.ofRight(pollingType));
        }

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

        public NetworkTapArgs build() {
            if ($.destinations == null) {
                throw new MissingRequiredPropertyException("NetworkTapArgs", "destinations");
            }
            if ($.networkPacketBrokerId == null) {
                throw new MissingRequiredPropertyException("NetworkTapArgs", "networkPacketBrokerId");
            }
            $.pollingType = Codegen.stringProp("pollingType").left(PollingType.class).output().arg($.pollingType).def("Pull").getNullable();
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NetworkTapArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy