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

com.pulumi.azurenative.datafactory.outputs.WarehouseSinkResponse 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.DWCopyCommandSettingsResponse;
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 WarehouseSinkResponse {
    /**
     * @return Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object allowCopyCommand;
    /**
     * @return Specifies Copy Command related settings when allowCopyCommand is true.
     * 
     */
    private @Nullable DWCopyCommandSettingsResponse copyCommandSettings;
    /**
     * @return If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    private @Nullable Object disableMetricsCollection;
    /**
     * @return The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object maxConcurrentConnections;
    /**
     * @return SQL pre-copy script. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object preCopyScript;
    /**
     * @return Sink retry count. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object sinkRetryCount;
    /**
     * @return Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    private @Nullable Object sinkRetryWait;
    /**
     * @return The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).
     * 
     */
    private @Nullable Object tableOption;
    /**
     * @return Copy sink type.
     * Expected value is 'WarehouseSink'.
     * 
     */
    private String type;
    /**
     * @return Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    private @Nullable Object writeBatchSize;
    /**
     * @return Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    private @Nullable Object writeBatchTimeout;
    /**
     * @return Write behavior when copying data into azure Microsoft Fabric Data Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum)
     * 
     */
    private @Nullable Object writeBehavior;

    private WarehouseSinkResponse() {}
    /**
     * @return Indicates to use Copy Command to copy data into SQL Data Warehouse. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional allowCopyCommand() {
        return Optional.ofNullable(this.allowCopyCommand);
    }
    /**
     * @return Specifies Copy Command related settings when allowCopyCommand is true.
     * 
     */
    public Optional copyCommandSettings() {
        return Optional.ofNullable(this.copyCommandSettings);
    }
    /**
     * @return If true, disable data store metrics collection. Default is false. Type: boolean (or Expression with resultType boolean).
     * 
     */
    public Optional disableMetricsCollection() {
        return Optional.ofNullable(this.disableMetricsCollection);
    }
    /**
     * @return The maximum concurrent connection count for the sink data store. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional maxConcurrentConnections() {
        return Optional.ofNullable(this.maxConcurrentConnections);
    }
    /**
     * @return SQL pre-copy script. Type: string (or Expression with resultType string).
     * 
     */
    public Optional preCopyScript() {
        return Optional.ofNullable(this.preCopyScript);
    }
    /**
     * @return Sink retry count. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional sinkRetryCount() {
        return Optional.ofNullable(this.sinkRetryCount);
    }
    /**
     * @return Sink retry wait. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    public Optional sinkRetryWait() {
        return Optional.ofNullable(this.sinkRetryWait);
    }
    /**
     * @return The option to handle sink table, such as autoCreate. For now only 'autoCreate' value is supported. Type: string (or Expression with resultType string).
     * 
     */
    public Optional tableOption() {
        return Optional.ofNullable(this.tableOption);
    }
    /**
     * @return Copy sink type.
     * Expected value is 'WarehouseSink'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Write batch size. Type: integer (or Expression with resultType integer), minimum: 0.
     * 
     */
    public Optional writeBatchSize() {
        return Optional.ofNullable(this.writeBatchSize);
    }
    /**
     * @return Write batch timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).
     * 
     */
    public Optional writeBatchTimeout() {
        return Optional.ofNullable(this.writeBatchTimeout);
    }
    /**
     * @return Write behavior when copying data into azure Microsoft Fabric Data Warehouse. Type: DWWriteBehaviorEnum (or Expression with resultType DWWriteBehaviorEnum)
     * 
     */
    public Optional writeBehavior() {
        return Optional.ofNullable(this.writeBehavior);
    }

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

    public static Builder builder(WarehouseSinkResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object allowCopyCommand;
        private @Nullable DWCopyCommandSettingsResponse copyCommandSettings;
        private @Nullable Object disableMetricsCollection;
        private @Nullable Object maxConcurrentConnections;
        private @Nullable Object preCopyScript;
        private @Nullable Object sinkRetryCount;
        private @Nullable Object sinkRetryWait;
        private @Nullable Object tableOption;
        private String type;
        private @Nullable Object writeBatchSize;
        private @Nullable Object writeBatchTimeout;
        private @Nullable Object writeBehavior;
        public Builder() {}
        public Builder(WarehouseSinkResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.allowCopyCommand = defaults.allowCopyCommand;
    	      this.copyCommandSettings = defaults.copyCommandSettings;
    	      this.disableMetricsCollection = defaults.disableMetricsCollection;
    	      this.maxConcurrentConnections = defaults.maxConcurrentConnections;
    	      this.preCopyScript = defaults.preCopyScript;
    	      this.sinkRetryCount = defaults.sinkRetryCount;
    	      this.sinkRetryWait = defaults.sinkRetryWait;
    	      this.tableOption = defaults.tableOption;
    	      this.type = defaults.type;
    	      this.writeBatchSize = defaults.writeBatchSize;
    	      this.writeBatchTimeout = defaults.writeBatchTimeout;
    	      this.writeBehavior = defaults.writeBehavior;
        }

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

            this.allowCopyCommand = allowCopyCommand;
            return this;
        }
        @CustomType.Setter
        public Builder copyCommandSettings(@Nullable DWCopyCommandSettingsResponse copyCommandSettings) {

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

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

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

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

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

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

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

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

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

            this.writeBehavior = writeBehavior;
            return this;
        }
        public WarehouseSinkResponse build() {
            final var _resultValue = new WarehouseSinkResponse();
            _resultValue.allowCopyCommand = allowCopyCommand;
            _resultValue.copyCommandSettings = copyCommandSettings;
            _resultValue.disableMetricsCollection = disableMetricsCollection;
            _resultValue.maxConcurrentConnections = maxConcurrentConnections;
            _resultValue.preCopyScript = preCopyScript;
            _resultValue.sinkRetryCount = sinkRetryCount;
            _resultValue.sinkRetryWait = sinkRetryWait;
            _resultValue.tableOption = tableOption;
            _resultValue.type = type;
            _resultValue.writeBatchSize = writeBatchSize;
            _resultValue.writeBatchTimeout = writeBatchTimeout;
            _resultValue.writeBehavior = writeBehavior;
            return _resultValue;
        }
    }
}