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

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

import com.pulumi.azurenative.datafactory.outputs.AvroFormatResponse;
import com.pulumi.azurenative.datafactory.outputs.DatasetCompressionResponse;
import com.pulumi.azurenative.datafactory.outputs.DatasetResponseFolder;
import com.pulumi.azurenative.datafactory.outputs.JsonFormatResponse;
import com.pulumi.azurenative.datafactory.outputs.LinkedServiceReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.OrcFormatResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
import com.pulumi.azurenative.datafactory.outputs.ParquetFormatResponse;
import com.pulumi.azurenative.datafactory.outputs.TextFormatResponse;
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 HttpDatasetResponse {
    /**
     * @return The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1
     * ...
     * request-header-name-n:request-header-value-n Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object additionalHeaders;
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The data compression method used on files.
     * 
     */
    private @Nullable DatasetCompressionResponse compression;
    /**
     * @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 The format of files.
     * 
     */
    private @Nullable Object format;
    /**
     * @return Linked service reference.
     * 
     */
    private LinkedServiceReferenceResponse linkedServiceName;
    /**
     * @return Parameters for dataset.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object relativeUrl;
    /**
     * @return The body for the HTTP request. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object requestBody;
    /**
     * @return The HTTP method for the HTTP request. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object requestMethod;
    /**
     * @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 'HttpFile'.
     * 
     */
    private String type;

    private HttpDatasetResponse() {}
    /**
     * @return The headers for the HTTP Request. e.g. request-header-name-1:request-header-value-1
     * ...
     * request-header-name-n:request-header-value-n Type: string (or Expression with resultType string).
     * 
     */
    public Optional additionalHeaders() {
        return Optional.ofNullable(this.additionalHeaders);
    }
    /**
     * @return List of tags that can be used for describing the Dataset.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The data compression method used on files.
     * 
     */
    public Optional compression() {
        return Optional.ofNullable(this.compression);
    }
    /**
     * @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 The format of files.
     * 
     */
    public Optional format() {
        return Optional.ofNullable(this.format);
    }
    /**
     * @return Linked service reference.
     * 
     */
    public LinkedServiceReferenceResponse linkedServiceName() {
        return this.linkedServiceName;
    }
    /**
     * @return Parameters for dataset.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return The relative URL based on the URL in the HttpLinkedService refers to an HTTP file Type: string (or Expression with resultType string).
     * 
     */
    public Optional relativeUrl() {
        return Optional.ofNullable(this.relativeUrl);
    }
    /**
     * @return The body for the HTTP request. Type: string (or Expression with resultType string).
     * 
     */
    public Optional requestBody() {
        return Optional.ofNullable(this.requestBody);
    }
    /**
     * @return The HTTP method for the HTTP request. Type: string (or Expression with resultType string).
     * 
     */
    public Optional requestMethod() {
        return Optional.ofNullable(this.requestMethod);
    }
    /**
     * @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 'HttpFile'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(HttpDatasetResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object additionalHeaders;
        private @Nullable List annotations;
        private @Nullable DatasetCompressionResponse compression;
        private @Nullable String description;
        private @Nullable DatasetResponseFolder folder;
        private @Nullable Object format;
        private LinkedServiceReferenceResponse linkedServiceName;
        private @Nullable Map parameters;
        private @Nullable Object relativeUrl;
        private @Nullable Object requestBody;
        private @Nullable Object requestMethod;
        private @Nullable Object schema;
        private @Nullable Object structure;
        private String type;
        public Builder() {}
        public Builder(HttpDatasetResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.additionalHeaders = defaults.additionalHeaders;
    	      this.annotations = defaults.annotations;
    	      this.compression = defaults.compression;
    	      this.description = defaults.description;
    	      this.folder = defaults.folder;
    	      this.format = defaults.format;
    	      this.linkedServiceName = defaults.linkedServiceName;
    	      this.parameters = defaults.parameters;
    	      this.relativeUrl = defaults.relativeUrl;
    	      this.requestBody = defaults.requestBody;
    	      this.requestMethod = defaults.requestMethod;
    	      this.schema = defaults.schema;
    	      this.structure = defaults.structure;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder additionalHeaders(@Nullable Object additionalHeaders) {

            this.additionalHeaders = additionalHeaders;
            return this;
        }
        @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 compression(@Nullable DatasetCompressionResponse compression) {

            this.compression = compression;
            return this;
        }
        @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 format(@Nullable Object format) {

            this.format = format;
            return this;
        }
        @CustomType.Setter
        public Builder linkedServiceName(LinkedServiceReferenceResponse linkedServiceName) {
            if (linkedServiceName == null) {
              throw new MissingRequiredPropertyException("HttpDatasetResponse", "linkedServiceName");
            }
            this.linkedServiceName = linkedServiceName;
            return this;
        }
        @CustomType.Setter
        public Builder parameters(@Nullable Map parameters) {

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

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

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

            this.requestMethod = requestMethod;
            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("HttpDatasetResponse", "type");
            }
            this.type = type;
            return this;
        }
        public HttpDatasetResponse build() {
            final var _resultValue = new HttpDatasetResponse();
            _resultValue.additionalHeaders = additionalHeaders;
            _resultValue.annotations = annotations;
            _resultValue.compression = compression;
            _resultValue.description = description;
            _resultValue.folder = folder;
            _resultValue.format = format;
            _resultValue.linkedServiceName = linkedServiceName;
            _resultValue.parameters = parameters;
            _resultValue.relativeUrl = relativeUrl;
            _resultValue.requestBody = requestBody;
            _resultValue.requestMethod = requestMethod;
            _resultValue.schema = schema;
            _resultValue.structure = structure;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}