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

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

import com.pulumi.azurenative.securityinsights.enums.FileFormat;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Represents a file.
 * 
 */
public final class FileMetadataArgs extends com.pulumi.resources.ResourceArgs {

    public static final FileMetadataArgs Empty = new FileMetadataArgs();

    /**
     * The format of the file
     * 
     */
    @Import(name="fileFormat")
    private @Nullable Output> fileFormat;

    /**
     * @return The format of the file
     * 
     */
    public Optional>> fileFormat() {
        return Optional.ofNullable(this.fileFormat);
    }

    /**
     * The name of the file.
     * 
     */
    @Import(name="fileName")
    private @Nullable Output fileName;

    /**
     * @return The name of the file.
     * 
     */
    public Optional> fileName() {
        return Optional.ofNullable(this.fileName);
    }

    /**
     * The size of the file.
     * 
     */
    @Import(name="fileSize")
    private @Nullable Output fileSize;

    /**
     * @return The size of the file.
     * 
     */
    public Optional> fileSize() {
        return Optional.ofNullable(this.fileSize);
    }

    private FileMetadataArgs() {}

    private FileMetadataArgs(FileMetadataArgs $) {
        this.fileFormat = $.fileFormat;
        this.fileName = $.fileName;
        this.fileSize = $.fileSize;
    }

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

    public static final class Builder {
        private FileMetadataArgs $;

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

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

        /**
         * @param fileFormat The format of the file
         * 
         * @return builder
         * 
         */
        public Builder fileFormat(@Nullable Output> fileFormat) {
            $.fileFormat = fileFormat;
            return this;
        }

        /**
         * @param fileFormat The format of the file
         * 
         * @return builder
         * 
         */
        public Builder fileFormat(Either fileFormat) {
            return fileFormat(Output.of(fileFormat));
        }

        /**
         * @param fileFormat The format of the file
         * 
         * @return builder
         * 
         */
        public Builder fileFormat(String fileFormat) {
            return fileFormat(Either.ofLeft(fileFormat));
        }

        /**
         * @param fileFormat The format of the file
         * 
         * @return builder
         * 
         */
        public Builder fileFormat(FileFormat fileFormat) {
            return fileFormat(Either.ofRight(fileFormat));
        }

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

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

        /**
         * @param fileSize The size of the file.
         * 
         * @return builder
         * 
         */
        public Builder fileSize(@Nullable Output fileSize) {
            $.fileSize = fileSize;
            return this;
        }

        /**
         * @param fileSize The size of the file.
         * 
         * @return builder
         * 
         */
        public Builder fileSize(Integer fileSize) {
            return fileSize(Output.of(fileSize));
        }

        public FileMetadataArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy