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

com.pulumi.azurenative.insights.inputs.WindowsFirewallLogsDataSourceArgs 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.insights.inputs;

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


/**
 * Enables Firewall logs to be collected by this data collection rule.
 * 
 */
public final class WindowsFirewallLogsDataSourceArgs extends com.pulumi.resources.ResourceArgs {

    public static final WindowsFirewallLogsDataSourceArgs Empty = new WindowsFirewallLogsDataSourceArgs();

    /**
     * A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return A friendly name for the data source.
     * This name should be unique across all data sources (regardless of type) within the data collection rule.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * Firewall logs streams
     * 
     */
    @Import(name="streams", required=true)
    private Output> streams;

    /**
     * @return Firewall logs streams
     * 
     */
    public Output> streams() {
        return this.streams;
    }

    private WindowsFirewallLogsDataSourceArgs() {}

    private WindowsFirewallLogsDataSourceArgs(WindowsFirewallLogsDataSourceArgs $) {
        this.name = $.name;
        this.streams = $.streams;
    }

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

    public static final class Builder {
        private WindowsFirewallLogsDataSourceArgs $;

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

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

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name A friendly name for the data source.
         * This name should be unique across all data sources (regardless of type) within the data collection rule.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param streams Firewall logs streams
         * 
         * @return builder
         * 
         */
        public Builder streams(Output> streams) {
            $.streams = streams;
            return this;
        }

        /**
         * @param streams Firewall logs streams
         * 
         * @return builder
         * 
         */
        public Builder streams(List streams) {
            return streams(Output.of(streams));
        }

        /**
         * @param streams Firewall logs streams
         * 
         * @return builder
         * 
         */
        public Builder streams(String... streams) {
            return streams(List.of(streams));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy