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

com.pulumi.azure.network.NetworkWatcherFlowLogArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.network;

import com.pulumi.azure.network.inputs.NetworkWatcherFlowLogRetentionPolicyArgs;
import com.pulumi.azure.network.inputs.NetworkWatcherFlowLogTrafficAnalyticsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NetworkWatcherFlowLogArgs Empty = new NetworkWatcherFlowLogArgs();

    /**
     * Should Network Flow Logging be Enabled?
     * 
     */
    @Import(name="enabled", required=true)
    private Output enabled;

    /**
     * @return Should Network Flow Logging be Enabled?
     * 
     */
    public Output enabled() {
        return this.enabled;
    }

    /**
     * The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the `location` of the Network Watcher.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the `location` of the Network Watcher.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="networkSecurityGroupId", required=true)
    private Output networkSecurityGroupId;

    /**
     * @return The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
     * 
     */
    public Output networkSecurityGroupId() {
        return this.networkSecurityGroupId;
    }

    /**
     * The name of the Network Watcher. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="networkWatcherName", required=true)
    private Output networkWatcherName;

    /**
     * @return The name of the Network Watcher. Changing this forces a new resource to be created.
     * 
     */
    public Output networkWatcherName() {
        return this.networkWatcherName;
    }

    /**
     * The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * A `retention_policy` block as documented below.
     * 
     */
    @Import(name="retentionPolicy", required=true)
    private Output retentionPolicy;

    /**
     * @return A `retention_policy` block as documented below.
     * 
     */
    public Output retentionPolicy() {
        return this.retentionPolicy;
    }

    /**
     * The ID of the Storage Account where flow logs are stored.
     * 
     */
    @Import(name="storageAccountId", required=true)
    private Output storageAccountId;

    /**
     * @return The ID of the Storage Account where flow logs are stored.
     * 
     */
    public Output storageAccountId() {
        return this.storageAccountId;
    }

    /**
     * A mapping of tags which should be assigned to the Network Watcher Flow Log.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return A mapping of tags which should be assigned to the Network Watcher Flow Log.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * A `traffic_analytics` block as documented below.
     * 
     */
    @Import(name="trafficAnalytics")
    private @Nullable Output trafficAnalytics;

    /**
     * @return A `traffic_analytics` block as documented below.
     * 
     */
    public Optional> trafficAnalytics() {
        return Optional.ofNullable(this.trafficAnalytics);
    }

    /**
     * The version (revision) of the flow log. Possible values are `1` and `2`. Defaults to `1`.
     * 
     */
    @Import(name="version")
    private @Nullable Output version;

    /**
     * @return The version (revision) of the flow log. Possible values are `1` and `2`. Defaults to `1`.
     * 
     */
    public Optional> version() {
        return Optional.ofNullable(this.version);
    }

    private NetworkWatcherFlowLogArgs() {}

    private NetworkWatcherFlowLogArgs(NetworkWatcherFlowLogArgs $) {
        this.enabled = $.enabled;
        this.location = $.location;
        this.name = $.name;
        this.networkSecurityGroupId = $.networkSecurityGroupId;
        this.networkWatcherName = $.networkWatcherName;
        this.resourceGroupName = $.resourceGroupName;
        this.retentionPolicy = $.retentionPolicy;
        this.storageAccountId = $.storageAccountId;
        this.tags = $.tags;
        this.trafficAnalytics = $.trafficAnalytics;
        this.version = $.version;
    }

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

    public static final class Builder {
        private NetworkWatcherFlowLogArgs $;

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

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

        /**
         * @param enabled Should Network Flow Logging be Enabled?
         * 
         * @return builder
         * 
         */
        public Builder enabled(Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Should Network Flow Logging be Enabled?
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param location The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the `location` of the Network Watcher.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The location where the Network Watcher Flow Log resides. Changing this forces a new resource to be created. Defaults to the `location` of the Network Watcher.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param name The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the Network Watcher Flow Log. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param networkSecurityGroupId The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupId(Output networkSecurityGroupId) {
            $.networkSecurityGroupId = networkSecurityGroupId;
            return this;
        }

        /**
         * @param networkSecurityGroupId The ID of the Network Security Group for which to enable flow logs for. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkSecurityGroupId(String networkSecurityGroupId) {
            return networkSecurityGroupId(Output.of(networkSecurityGroupId));
        }

        /**
         * @param networkWatcherName The name of the Network Watcher. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkWatcherName(Output networkWatcherName) {
            $.networkWatcherName = networkWatcherName;
            return this;
        }

        /**
         * @param networkWatcherName The name of the Network Watcher. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder networkWatcherName(String networkWatcherName) {
            return networkWatcherName(Output.of(networkWatcherName));
        }

        /**
         * @param resourceGroupName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which the Network Watcher was deployed. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param retentionPolicy A `retention_policy` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(Output retentionPolicy) {
            $.retentionPolicy = retentionPolicy;
            return this;
        }

        /**
         * @param retentionPolicy A `retention_policy` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder retentionPolicy(NetworkWatcherFlowLogRetentionPolicyArgs retentionPolicy) {
            return retentionPolicy(Output.of(retentionPolicy));
        }

        /**
         * @param storageAccountId The ID of the Storage Account where flow logs are stored.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(Output storageAccountId) {
            $.storageAccountId = storageAccountId;
            return this;
        }

        /**
         * @param storageAccountId The ID of the Storage Account where flow logs are stored.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountId(String storageAccountId) {
            return storageAccountId(Output.of(storageAccountId));
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Network Watcher Flow Log.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags which should be assigned to the Network Watcher Flow Log.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param trafficAnalytics A `traffic_analytics` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder trafficAnalytics(@Nullable Output trafficAnalytics) {
            $.trafficAnalytics = trafficAnalytics;
            return this;
        }

        /**
         * @param trafficAnalytics A `traffic_analytics` block as documented below.
         * 
         * @return builder
         * 
         */
        public Builder trafficAnalytics(NetworkWatcherFlowLogTrafficAnalyticsArgs trafficAnalytics) {
            return trafficAnalytics(Output.of(trafficAnalytics));
        }

        /**
         * @param version The version (revision) of the flow log. Possible values are `1` and `2`. Defaults to `1`.
         * 
         * @return builder
         * 
         */
        public Builder version(@Nullable Output version) {
            $.version = version;
            return this;
        }

        /**
         * @param version The version (revision) of the flow log. Possible values are `1` and `2`. Defaults to `1`.
         * 
         * @return builder
         * 
         */
        public Builder version(Integer version) {
            return version(Output.of(version));
        }

        public NetworkWatcherFlowLogArgs build() {
            if ($.enabled == null) {
                throw new MissingRequiredPropertyException("NetworkWatcherFlowLogArgs", "enabled");
            }
            if ($.networkSecurityGroupId == null) {
                throw new MissingRequiredPropertyException("NetworkWatcherFlowLogArgs", "networkSecurityGroupId");
            }
            if ($.networkWatcherName == null) {
                throw new MissingRequiredPropertyException("NetworkWatcherFlowLogArgs", "networkWatcherName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("NetworkWatcherFlowLogArgs", "resourceGroupName");
            }
            if ($.retentionPolicy == null) {
                throw new MissingRequiredPropertyException("NetworkWatcherFlowLogArgs", "retentionPolicy");
            }
            if ($.storageAccountId == null) {
                throw new MissingRequiredPropertyException("NetworkWatcherFlowLogArgs", "storageAccountId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy