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

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

import com.pulumi.azurenative.datafactory.outputs.TarGZipReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.TarReadSettingsResponse;
import com.pulumi.azurenative.datafactory.outputs.ZipDeflateReadSettingsResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class XmlReadSettingsResponse {
    /**
     * @return Compression settings.
     * 
     */
    private @Nullable Object compressionProperties;
    /**
     * @return Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object detectDataType;
    /**
     * @return Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object).
     * 
     */
    private @Nullable Object namespacePrefixes;
    /**
     * @return Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object namespaces;
    /**
     * @return The read setting type.
     * Expected value is 'XmlReadSettings'.
     * 
     */
    private String type;
    /**
     * @return Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object validationMode;

    private XmlReadSettingsResponse() {}
    /**
     * @return Compression settings.
     * 
     */
    public Optional compressionProperties() {
        return Optional.ofNullable(this.compressionProperties);
    }
    /**
     * @return Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional detectDataType() {
        return Optional.ofNullable(this.detectDataType);
    }
    /**
     * @return Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object).
     * 
     */
    public Optional namespacePrefixes() {
        return Optional.ofNullable(this.namespacePrefixes);
    }
    /**
     * @return Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional namespaces() {
        return Optional.ofNullable(this.namespaces);
    }
    /**
     * @return The read setting type.
     * Expected value is 'XmlReadSettings'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string).
     * 
     */
    public Optional validationMode() {
        return Optional.ofNullable(this.validationMode);
    }

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

    public static Builder builder(XmlReadSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object compressionProperties;
        private @Nullable Object detectDataType;
        private @Nullable Object namespacePrefixes;
        private @Nullable Object namespaces;
        private String type;
        private @Nullable Object validationMode;
        public Builder() {}
        public Builder(XmlReadSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.compressionProperties = defaults.compressionProperties;
    	      this.detectDataType = defaults.detectDataType;
    	      this.namespacePrefixes = defaults.namespacePrefixes;
    	      this.namespaces = defaults.namespaces;
    	      this.type = defaults.type;
    	      this.validationMode = defaults.validationMode;
        }

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

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

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

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

            this.namespaces = namespaces;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("XmlReadSettingsResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder validationMode(@Nullable Object validationMode) {

            this.validationMode = validationMode;
            return this;
        }
        public XmlReadSettingsResponse build() {
            final var _resultValue = new XmlReadSettingsResponse();
            _resultValue.compressionProperties = compressionProperties;
            _resultValue.detectDataType = detectDataType;
            _resultValue.namespacePrefixes = namespacePrefixes;
            _resultValue.namespaces = namespaces;
            _resultValue.type = type;
            _resultValue.validationMode = validationMode;
            return _resultValue;
        }
    }
}