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

com.pulumi.azurenative.datafactory.outputs.AzureBlobFSWriteSettingsResponse Maven / Gradle / Ivy

The 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.MetadataItemResponse;
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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class AzureBlobFSWriteSettingsResponse {
    /**
     * @return Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object blockSizeInMB;
    /**
     * @return The type of copy behavior for copy sink.
     * 
     */
    private @Nullable Object copyBehavior;
    /**
     * @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 source data store. Type: integer (or Expression with resultType integer).
     * 
     */
    private @Nullable Object maxConcurrentConnections;
    /**
     * @return Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     * 
     */
    private @Nullable List metadata;
    /**
     * @return The write setting type.
     * Expected value is 'AzureBlobFSWriteSettings'.
     * 
     */
    private String type;

    private AzureBlobFSWriteSettingsResponse() {}
    /**
     * @return Indicates the block size(MB) when writing data to blob. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional blockSizeInMB() {
        return Optional.ofNullable(this.blockSizeInMB);
    }
    /**
     * @return The type of copy behavior for copy sink.
     * 
     */
    public Optional copyBehavior() {
        return Optional.ofNullable(this.copyBehavior);
    }
    /**
     * @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 source data store. Type: integer (or Expression with resultType integer).
     * 
     */
    public Optional maxConcurrentConnections() {
        return Optional.ofNullable(this.maxConcurrentConnections);
    }
    /**
     * @return Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects).
     * 
     */
    public List metadata() {
        return this.metadata == null ? List.of() : this.metadata;
    }
    /**
     * @return The write setting type.
     * Expected value is 'AzureBlobFSWriteSettings'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(AzureBlobFSWriteSettingsResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Object blockSizeInMB;
        private @Nullable Object copyBehavior;
        private @Nullable Object disableMetricsCollection;
        private @Nullable Object maxConcurrentConnections;
        private @Nullable List metadata;
        private String type;
        public Builder() {}
        public Builder(AzureBlobFSWriteSettingsResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.blockSizeInMB = defaults.blockSizeInMB;
    	      this.copyBehavior = defaults.copyBehavior;
    	      this.disableMetricsCollection = defaults.disableMetricsCollection;
    	      this.maxConcurrentConnections = defaults.maxConcurrentConnections;
    	      this.metadata = defaults.metadata;
    	      this.type = defaults.type;
        }

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

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

            this.copyBehavior = copyBehavior;
            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 metadata(@Nullable List metadata) {

            this.metadata = metadata;
            return this;
        }
        public Builder metadata(MetadataItemResponse... metadata) {
            return metadata(List.of(metadata));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("AzureBlobFSWriteSettingsResponse", "type");
            }
            this.type = type;
            return this;
        }
        public AzureBlobFSWriteSettingsResponse build() {
            final var _resultValue = new AzureBlobFSWriteSettingsResponse();
            _resultValue.blockSizeInMB = blockSizeInMB;
            _resultValue.copyBehavior = copyBehavior;
            _resultValue.disableMetricsCollection = disableMetricsCollection;
            _resultValue.maxConcurrentConnections = maxConcurrentConnections;
            _resultValue.metadata = metadata;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}