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

com.pulumi.azurenative.securityinsights.inputs.LogArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.securityinsights.inputs;

import com.pulumi.azurenative.securityinsights.enums.IngestionType;
import com.pulumi.azurenative.securityinsights.enums.LogStatusType;
import com.pulumi.azurenative.securityinsights.enums.LogType;
import com.pulumi.core.Either;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Describes a log.
 * 
 */
public final class LogArgs extends com.pulumi.resources.ResourceArgs {

    public static final LogArgs Empty = new LogArgs();

    /**
     * The bulk size for the log.
     * 
     */
    @Import(name="bulkSize")
    private @Nullable Output bulkSize;

    /**
     * @return The bulk size for the log.
     * 
     */
    public Optional> bulkSize() {
        return Optional.ofNullable(this.bulkSize);
    }

    /**
     * The filters for the log.
     * 
     */
    @Import(name="filters")
    private @Nullable Output> filters;

    /**
     * @return The filters for the log.
     * 
     */
    public Optional>> filters() {
        return Optional.ofNullable(this.filters);
    }

    /**
     * Types of ingestion.
     * 
     */
    @Import(name="ingestionType")
    private @Nullable Output> ingestionType;

    /**
     * @return Types of ingestion.
     * 
     */
    public Optional>> ingestionType() {
        return Optional.ofNullable(this.ingestionType);
    }

    /**
     * The schedule interval in seconds.
     * 
     */
    @Import(name="scheduleInterval")
    private @Nullable Output scheduleInterval;

    /**
     * @return The schedule interval in seconds.
     * 
     */
    public Optional> scheduleInterval() {
        return Optional.ofNullable(this.scheduleInterval);
    }

    /**
     * Types of log status.
     * 
     */
    @Import(name="status")
    private @Nullable Output> status;

    /**
     * @return Types of log status.
     * 
     */
    public Optional>> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * Types of logs and tables.
     * 
     */
    @Import(name="type", required=true)
    private Output> type;

    /**
     * @return Types of logs and tables.
     * 
     */
    public Output> type() {
        return this.type;
    }

    private LogArgs() {}

    private LogArgs(LogArgs $) {
        this.bulkSize = $.bulkSize;
        this.filters = $.filters;
        this.ingestionType = $.ingestionType;
        this.scheduleInterval = $.scheduleInterval;
        this.status = $.status;
        this.type = $.type;
    }

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

    public static final class Builder {
        private LogArgs $;

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

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

        /**
         * @param bulkSize The bulk size for the log.
         * 
         * @return builder
         * 
         */
        public Builder bulkSize(@Nullable Output bulkSize) {
            $.bulkSize = bulkSize;
            return this;
        }

        /**
         * @param bulkSize The bulk size for the log.
         * 
         * @return builder
         * 
         */
        public Builder bulkSize(Integer bulkSize) {
            return bulkSize(Output.of(bulkSize));
        }

        /**
         * @param filters The filters for the log.
         * 
         * @return builder
         * 
         */
        public Builder filters(@Nullable Output> filters) {
            $.filters = filters;
            return this;
        }

        /**
         * @param filters The filters for the log.
         * 
         * @return builder
         * 
         */
        public Builder filters(List filters) {
            return filters(Output.of(filters));
        }

        /**
         * @param filters The filters for the log.
         * 
         * @return builder
         * 
         */
        public Builder filters(String... filters) {
            return filters(List.of(filters));
        }

        /**
         * @param ingestionType Types of ingestion.
         * 
         * @return builder
         * 
         */
        public Builder ingestionType(@Nullable Output> ingestionType) {
            $.ingestionType = ingestionType;
            return this;
        }

        /**
         * @param ingestionType Types of ingestion.
         * 
         * @return builder
         * 
         */
        public Builder ingestionType(Either ingestionType) {
            return ingestionType(Output.of(ingestionType));
        }

        /**
         * @param ingestionType Types of ingestion.
         * 
         * @return builder
         * 
         */
        public Builder ingestionType(String ingestionType) {
            return ingestionType(Either.ofLeft(ingestionType));
        }

        /**
         * @param ingestionType Types of ingestion.
         * 
         * @return builder
         * 
         */
        public Builder ingestionType(IngestionType ingestionType) {
            return ingestionType(Either.ofRight(ingestionType));
        }

        /**
         * @param scheduleInterval The schedule interval in seconds.
         * 
         * @return builder
         * 
         */
        public Builder scheduleInterval(@Nullable Output scheduleInterval) {
            $.scheduleInterval = scheduleInterval;
            return this;
        }

        /**
         * @param scheduleInterval The schedule interval in seconds.
         * 
         * @return builder
         * 
         */
        public Builder scheduleInterval(Integer scheduleInterval) {
            return scheduleInterval(Output.of(scheduleInterval));
        }

        /**
         * @param status Types of log status.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output> status) {
            $.status = status;
            return this;
        }

        /**
         * @param status Types of log status.
         * 
         * @return builder
         * 
         */
        public Builder status(Either status) {
            return status(Output.of(status));
        }

        /**
         * @param status Types of log status.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Either.ofLeft(status));
        }

        /**
         * @param status Types of log status.
         * 
         * @return builder
         * 
         */
        public Builder status(LogStatusType status) {
            return status(Either.ofRight(status));
        }

        /**
         * @param type Types of logs and tables.
         * 
         * @return builder
         * 
         */
        public Builder type(Output> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Types of logs and tables.
         * 
         * @return builder
         * 
         */
        public Builder type(Either type) {
            return type(Output.of(type));
        }

        /**
         * @param type Types of logs and tables.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Either.ofLeft(type));
        }

        /**
         * @param type Types of logs and tables.
         * 
         * @return builder
         * 
         */
        public Builder type(LogType type) {
            return type(Either.ofRight(type));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy