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

com.pulumi.azurenative.datafactory.outputs.OrcDatasetResponse 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.datafactory.outputs;

import com.pulumi.azurenative.datafactory.outputs.AmazonS3CompatibleLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3LocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobFSLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataLakeStoreLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureFileStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.DatasetResponseFolder;
import com.pulumi.azurenative.datafactory.outputs.FileServerLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.FtpServerLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleCloudStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.HdfsLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.HttpServerLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.LakeHouseLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleCloudStorageLocationResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.azurenative.datafactory.outputs.SftpLocationResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class OrcDatasetResponse {
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return Dataset description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     * 
     */
    private @Nullable DatasetResponseFolder folder;
    /**
     * @return Linked service reference.
     * 
     */
    private LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return The location of the ORC data storage.
     * 
     */
    private Object location;
    /**
     * @return The data orcCompressionCodec. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object orcCompressionCodec;
    /**
     * @return Parameters for dataset.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     * 
     */
    private @Nullable Object schema;
    /**
     * @return Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     * 
     */
    private @Nullable Object structure;
    /**
     * @return Type of dataset.
     * Expected value is 'Orc'.
     * 
     */
    private String type;

    private OrcDatasetResponse() {}
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return Dataset description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The folder that this Dataset is in. If not specified, Dataset will appear at the root level.
     * 
     */
    public Optional folder() {
        return Optional.ofNullable(this.folder);
    }
    /**
     * @return Linked service reference.
     * 
     */
    public LinkedServiceReferenceResponse linkedServiceName() {
        return this.linkedServiceName;
    }
    /**
     * @return The location of the ORC data storage.
     * 
     */
    public Object location() {
        return this.location;
    }
    /**
     * @return The data orcCompressionCodec. Type: string (or Expression with resultType string).
     * 
     */
    public Optional orcCompressionCodec() {
        return Optional.ofNullable(this.orcCompressionCodec);
    }
    /**
     * @return Parameters for dataset.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return Columns that define the physical type schema of the dataset. Type: array (or Expression with resultType array), itemType: DatasetSchemaDataElement.
     * 
     */
    public Optional schema() {
        return Optional.ofNullable(this.schema);
    }
    /**
     * @return Columns that define the structure of the dataset. Type: array (or Expression with resultType array), itemType: DatasetDataElement.
     * 
     */
    public Optional structure() {
        return Optional.ofNullable(this.structure);
    }
    /**
     * @return Type of dataset.
     * Expected value is 'Orc'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(OrcDatasetResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable String description;
        private @Nullable DatasetResponseFolder folder;
        private LinkedServiceReferenceResponse linkedServiceName;
        private Object location;
        private @Nullable Object orcCompressionCodec;
        private @Nullable Map parameters;
        private @Nullable Object schema;
        private @Nullable Object structure;
        private String type;
        public Builder() {}
        public Builder(OrcDatasetResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.description = defaults.description;
    	      this.folder = defaults.folder;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.location = defaults.location;
    	      this.orcCompressionCodec = defaults.orcCompressionCodec;
    	      this.parameters = defaults.parameters;
    	      this.schema = defaults.schema;
    	      this.structure = defaults.structure;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder annotations(@Nullable List annotations) {

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder folder(@Nullable DatasetResponseFolder folder) {

            this.folder = folder;
            return this;
        }
        @CustomType.Setter
        public Builder linkedServiceName(LinkedServiceReferenceResponse linkedServiceName) {
            if (linkedServiceName == null) {
              throw new MissingRequiredPropertyException("OrcDatasetResponse", "linkedServiceName");
            }
            this.linkedServiceName = linkedServiceName;
            return this;
        }
        @CustomType.Setter
        public Builder location(Object location) {
            if (location == null) {
              throw new MissingRequiredPropertyException("OrcDatasetResponse", "location");
            }
            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder orcCompressionCodec(@Nullable Object orcCompressionCodec) {

            this.orcCompressionCodec = orcCompressionCodec;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

            this.parameters = parameters;
            return this;
        }
        @CustomType.Setter
        public Builder schema(@Nullable Object schema) {

            this.schema = schema;
            return this;
        }
        @CustomType.Setter
        public Builder structure(@Nullable Object structure) {

            this.structure = structure;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("OrcDatasetResponse", "type");
            }
            this.type = type;
            return this;
        }
        public OrcDatasetResponse build() {
            final var _resultValue = new OrcDatasetResponse();
            _resultValue.annotations = annotations;
            _resultValue.description = description;
            _resultValue.folder = folder;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.location = location;
            _resultValue.orcCompressionCodec = orcCompressionCodec;
            _resultValue.parameters = parameters;
            _resultValue.schema = schema;
            _resultValue.structure = structure;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}