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

com.pulumi.azurenative.datafactory.outputs.AzureFileStorageWriteSettingsResponse 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.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 AzureFileStorageWriteSettingsResponse {
    /**
     * @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 'AzureFileStorageWriteSettings'.
     * 
     */
    private String type;

    private AzureFileStorageWriteSettingsResponse() {}
    /**
     * @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 'AzureFileStorageWriteSettings'.
     * 
     */
    public String type() {
        return this.type;
    }

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

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

        @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("AzureFileStorageWriteSettingsResponse", "type");
            }
            this.type = type;
            return this;
        }
        public AzureFileStorageWriteSettingsResponse build() {
            final var _resultValue = new AzureFileStorageWriteSettingsResponse();
            _resultValue.copyBehavior = copyBehavior;
            _resultValue.disableMetricsCollection = disableMetricsCollection;
            _resultValue.maxConcurrentConnections = maxConcurrentConnections;
            _resultValue.metadata = metadata;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}