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

com.pulumi.azurenative.securityinsights.FileImportArgs 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.securityinsights;

import com.pulumi.azurenative.securityinsights.enums.FileImportContentType;
import com.pulumi.azurenative.securityinsights.enums.IngestionMode;
import com.pulumi.azurenative.securityinsights.inputs.FileMetadataArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final FileImportArgs Empty = new FileImportArgs();

    /**
     * The content type of this file.
     * 
     */
    @Import(name="contentType", required=true)
    private Output> contentType;

    /**
     * @return The content type of this file.
     * 
     */
    public Output> contentType() {
        return this.contentType;
    }

    /**
     * File import ID
     * 
     */
    @Import(name="fileImportId")
    private @Nullable Output fileImportId;

    /**
     * @return File import ID
     * 
     */
    public Optional> fileImportId() {
        return Optional.ofNullable(this.fileImportId);
    }

    /**
     * Represents the imported file.
     * 
     */
    @Import(name="importFile", required=true)
    private Output importFile;

    /**
     * @return Represents the imported file.
     * 
     */
    public Output importFile() {
        return this.importFile;
    }

    /**
     * Describes how to ingest the records in the file.
     * 
     */
    @Import(name="ingestionMode", required=true)
    private Output> ingestionMode;

    /**
     * @return Describes how to ingest the records in the file.
     * 
     */
    public Output> ingestionMode() {
        return this.ingestionMode;
    }

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

    /**
     * The source for the data in the file.
     * 
     */
    @Import(name="source", required=true)
    private Output source;

    /**
     * @return The source for the data in the file.
     * 
     */
    public Output source() {
        return this.source;
    }

    /**
     * The name of the workspace.
     * 
     */
    @Import(name="workspaceName", required=true)
    private Output workspaceName;

    /**
     * @return The name of the workspace.
     * 
     */
    public Output workspaceName() {
        return this.workspaceName;
    }

    private FileImportArgs() {}

    private FileImportArgs(FileImportArgs $) {
        this.contentType = $.contentType;
        this.fileImportId = $.fileImportId;
        this.importFile = $.importFile;
        this.ingestionMode = $.ingestionMode;
        this.resourceGroupName = $.resourceGroupName;
        this.source = $.source;
        this.workspaceName = $.workspaceName;
    }

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

    public static final class Builder {
        private FileImportArgs $;

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

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

        /**
         * @param contentType The content type of this file.
         * 
         * @return builder
         * 
         */
        public Builder contentType(Output> contentType) {
            $.contentType = contentType;
            return this;
        }

        /**
         * @param contentType The content type of this file.
         * 
         * @return builder
         * 
         */
        public Builder contentType(Either contentType) {
            return contentType(Output.of(contentType));
        }

        /**
         * @param contentType The content type of this file.
         * 
         * @return builder
         * 
         */
        public Builder contentType(String contentType) {
            return contentType(Either.ofLeft(contentType));
        }

        /**
         * @param contentType The content type of this file.
         * 
         * @return builder
         * 
         */
        public Builder contentType(FileImportContentType contentType) {
            return contentType(Either.ofRight(contentType));
        }

        /**
         * @param fileImportId File import ID
         * 
         * @return builder
         * 
         */
        public Builder fileImportId(@Nullable Output fileImportId) {
            $.fileImportId = fileImportId;
            return this;
        }

        /**
         * @param fileImportId File import ID
         * 
         * @return builder
         * 
         */
        public Builder fileImportId(String fileImportId) {
            return fileImportId(Output.of(fileImportId));
        }

        /**
         * @param importFile Represents the imported file.
         * 
         * @return builder
         * 
         */
        public Builder importFile(Output importFile) {
            $.importFile = importFile;
            return this;
        }

        /**
         * @param importFile Represents the imported file.
         * 
         * @return builder
         * 
         */
        public Builder importFile(FileMetadataArgs importFile) {
            return importFile(Output.of(importFile));
        }

        /**
         * @param ingestionMode Describes how to ingest the records in the file.
         * 
         * @return builder
         * 
         */
        public Builder ingestionMode(Output> ingestionMode) {
            $.ingestionMode = ingestionMode;
            return this;
        }

        /**
         * @param ingestionMode Describes how to ingest the records in the file.
         * 
         * @return builder
         * 
         */
        public Builder ingestionMode(Either ingestionMode) {
            return ingestionMode(Output.of(ingestionMode));
        }

        /**
         * @param ingestionMode Describes how to ingest the records in the file.
         * 
         * @return builder
         * 
         */
        public Builder ingestionMode(String ingestionMode) {
            return ingestionMode(Either.ofLeft(ingestionMode));
        }

        /**
         * @param ingestionMode Describes how to ingest the records in the file.
         * 
         * @return builder
         * 
         */
        public Builder ingestionMode(IngestionMode ingestionMode) {
            return ingestionMode(Either.ofRight(ingestionMode));
        }

        /**
         * @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 source The source for the data in the file.
         * 
         * @return builder
         * 
         */
        public Builder source(Output source) {
            $.source = source;
            return this;
        }

        /**
         * @param source The source for the data in the file.
         * 
         * @return builder
         * 
         */
        public Builder source(String source) {
            return source(Output.of(source));
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(Output workspaceName) {
            $.workspaceName = workspaceName;
            return this;
        }

        /**
         * @param workspaceName The name of the workspace.
         * 
         * @return builder
         * 
         */
        public Builder workspaceName(String workspaceName) {
            return workspaceName(Output.of(workspaceName));
        }

        public FileImportArgs build() {
            if ($.contentType == null) {
                throw new MissingRequiredPropertyException("FileImportArgs", "contentType");
            }
            if ($.importFile == null) {
                throw new MissingRequiredPropertyException("FileImportArgs", "importFile");
            }
            if ($.ingestionMode == null) {
                throw new MissingRequiredPropertyException("FileImportArgs", "ingestionMode");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("FileImportArgs", "resourceGroupName");
            }
            if ($.source == null) {
                throw new MissingRequiredPropertyException("FileImportArgs", "source");
            }
            if ($.workspaceName == null) {
                throw new MissingRequiredPropertyException("FileImportArgs", "workspaceName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy