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

com.pulumi.azurenative.awsconnector.inputs.CsvArgs 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.awsconnector.inputs;

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


/**
 * Definition of Csv
 * 
 */
public final class CsvArgs extends com.pulumi.resources.ResourceArgs {

    public static final CsvArgs Empty = new CsvArgs();

    /**
     * The delimiter used for separating items in the CSV file being imported.
     * 
     */
    @Import(name="delimiter")
    private @Nullable Output delimiter;

    /**
     * @return The delimiter used for separating items in the CSV file being imported.
     * 
     */
    public Optional> delimiter() {
        return Optional.ofNullable(this.delimiter);
    }

    /**
     * List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
     * 
     */
    @Import(name="headerList")
    private @Nullable Output> headerList;

    /**
     * @return List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
     * 
     */
    public Optional>> headerList() {
        return Optional.ofNullable(this.headerList);
    }

    private CsvArgs() {}

    private CsvArgs(CsvArgs $) {
        this.delimiter = $.delimiter;
        this.headerList = $.headerList;
    }

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

    public static final class Builder {
        private CsvArgs $;

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

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

        /**
         * @param delimiter The delimiter used for separating items in the CSV file being imported.
         * 
         * @return builder
         * 
         */
        public Builder delimiter(@Nullable Output delimiter) {
            $.delimiter = delimiter;
            return this;
        }

        /**
         * @param delimiter The delimiter used for separating items in the CSV file being imported.
         * 
         * @return builder
         * 
         */
        public Builder delimiter(String delimiter) {
            return delimiter(Output.of(delimiter));
        }

        /**
         * @param headerList List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
         * 
         * @return builder
         * 
         */
        public Builder headerList(@Nullable Output> headerList) {
            $.headerList = headerList;
            return this;
        }

        /**
         * @param headerList List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
         * 
         * @return builder
         * 
         */
        public Builder headerList(List headerList) {
            return headerList(Output.of(headerList));
        }

        /**
         * @param headerList List of the headers used to specify a common header for all source CSV files being imported. If this field is specified then the first line of each CSV file is treated as data instead of the header. If this field is not specified the the first line of each CSV file is treated as the header.
         * 
         * @return builder
         * 
         */
        public Builder headerList(String... headerList) {
            return headerList(List.of(headerList));
        }

        public CsvArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy