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

com.pulumi.azurenative.datafactory.outputs.PostgreSqlV2LinkedServiceResponse 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.AzureKeyVaultSecretReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.IntegrationRuntimeReferenceResponse;
import com.pulumi.azurenative.datafactory.outputs.ParameterSpecificationResponse;
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 PostgreSqlV2LinkedServiceResponse {
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return The authentication type to use. Type: string.
     * 
     */
    private Object authenticationType;
    /**
     * @return The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer.
     * 
     */
    private @Nullable Object commandTimeout;
    /**
     * @return The integration runtime reference.
     * 
     */
    private @Nullable IntegrationRuntimeReferenceResponse connectVia;
    /**
     * @return The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer.
     * 
     */
    private @Nullable Object connectionTimeout;
    /**
     * @return Database name for connection. Type: string.
     * 
     */
    private Object database;
    /**
     * @return Linked service description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string
     * 
     */
    private @Nullable Object encoding;
    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    private @Nullable String encryptedCredential;
    /**
     * @return When enabled, parameter values are logged when commands are executed. Type: boolean.
     * 
     */
    private @Nullable Object logParameters;
    /**
     * @return Parameters for linked service.
     * 
     */
    private @Nullable Map parameters;
    /**
     * @return The Azure key vault secret reference of password in connection string. Type: string.
     * 
     */
    private @Nullable AzureKeyVaultSecretReferenceResponse password;
    /**
     * @return Whether connection pooling should be used. Type: boolean.
     * 
     */
    private @Nullable Object pooling;
    /**
     * @return The port for the connection. Type: integer.
     * 
     */
    private @Nullable Object port;
    /**
     * @return Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer.
     * 
     */
    private @Nullable Object readBufferSize;
    /**
     * @return Sets the schema search path. Type: string.
     * 
     */
    private @Nullable Object schema;
    /**
     * @return Server name for connection. Type: string.
     * 
     */
    private Object server;
    /**
     * @return Location of a client certificate to be sent to the server. Type: string.
     * 
     */
    private @Nullable Object sslCertificate;
    /**
     * @return Location of a client key for a client certificate to be sent to the server. Type: string.
     * 
     */
    private @Nullable Object sslKey;
    /**
     * @return SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer.
     * 
     */
    private Object sslMode;
    /**
     * @return Password for a key for a client certificate. Type: string.
     * 
     */
    private @Nullable Object sslPassword;
    /**
     * @return Gets or sets the session timezone. Type: string.
     * 
     */
    private @Nullable Object timezone;
    /**
     * @return Whether to trust the server certificate without validating it. Type: boolean.
     * 
     */
    private @Nullable Object trustServerCertificate;
    /**
     * @return Type of linked service.
     * Expected value is 'PostgreSqlV2'.
     * 
     */
    private String type;
    /**
     * @return Username for authentication. Type: string.
     * 
     */
    private Object username;
    /**
     * @return Version of the linked service.
     * 
     */
    private @Nullable String version;

    private PostgreSqlV2LinkedServiceResponse() {}
    /**
     * @return List of tags that can be used for describing the linked service.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return The authentication type to use. Type: string.
     * 
     */
    public Object authenticationType() {
        return this.authenticationType;
    }
    /**
     * @return The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer.
     * 
     */
    public Optional commandTimeout() {
        return Optional.ofNullable(this.commandTimeout);
    }
    /**
     * @return The integration runtime reference.
     * 
     */
    public Optional connectVia() {
        return Optional.ofNullable(this.connectVia);
    }
    /**
     * @return The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer.
     * 
     */
    public Optional connectionTimeout() {
        return Optional.ofNullable(this.connectionTimeout);
    }
    /**
     * @return Database name for connection. Type: string.
     * 
     */
    public Object database() {
        return this.database;
    }
    /**
     * @return Linked service description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string
     * 
     */
    public Optional encoding() {
        return Optional.ofNullable(this.encoding);
    }
    /**
     * @return The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.
     * 
     */
    public Optional encryptedCredential() {
        return Optional.ofNullable(this.encryptedCredential);
    }
    /**
     * @return When enabled, parameter values are logged when commands are executed. Type: boolean.
     * 
     */
    public Optional logParameters() {
        return Optional.ofNullable(this.logParameters);
    }
    /**
     * @return Parameters for linked service.
     * 
     */
    public Map parameters() {
        return this.parameters == null ? Map.of() : this.parameters;
    }
    /**
     * @return The Azure key vault secret reference of password in connection string. Type: string.
     * 
     */
    public Optional password() {
        return Optional.ofNullable(this.password);
    }
    /**
     * @return Whether connection pooling should be used. Type: boolean.
     * 
     */
    public Optional pooling() {
        return Optional.ofNullable(this.pooling);
    }
    /**
     * @return The port for the connection. Type: integer.
     * 
     */
    public Optional port() {
        return Optional.ofNullable(this.port);
    }
    /**
     * @return Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer.
     * 
     */
    public Optional readBufferSize() {
        return Optional.ofNullable(this.readBufferSize);
    }
    /**
     * @return Sets the schema search path. Type: string.
     * 
     */
    public Optional schema() {
        return Optional.ofNullable(this.schema);
    }
    /**
     * @return Server name for connection. Type: string.
     * 
     */
    public Object server() {
        return this.server;
    }
    /**
     * @return Location of a client certificate to be sent to the server. Type: string.
     * 
     */
    public Optional sslCertificate() {
        return Optional.ofNullable(this.sslCertificate);
    }
    /**
     * @return Location of a client key for a client certificate to be sent to the server. Type: string.
     * 
     */
    public Optional sslKey() {
        return Optional.ofNullable(this.sslKey);
    }
    /**
     * @return SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer.
     * 
     */
    public Object sslMode() {
        return this.sslMode;
    }
    /**
     * @return Password for a key for a client certificate. Type: string.
     * 
     */
    public Optional sslPassword() {
        return Optional.ofNullable(this.sslPassword);
    }
    /**
     * @return Gets or sets the session timezone. Type: string.
     * 
     */
    public Optional timezone() {
        return Optional.ofNullable(this.timezone);
    }
    /**
     * @return Whether to trust the server certificate without validating it. Type: boolean.
     * 
     */
    public Optional trustServerCertificate() {
        return Optional.ofNullable(this.trustServerCertificate);
    }
    /**
     * @return Type of linked service.
     * Expected value is 'PostgreSqlV2'.
     * 
     */
    public String type() {
        return this.type;
    }
    /**
     * @return Username for authentication. Type: string.
     * 
     */
    public Object username() {
        return this.username;
    }
    /**
     * @return Version of the linked service.
     * 
     */
    public Optional version() {
        return Optional.ofNullable(this.version);
    }

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

    public static Builder builder(PostgreSqlV2LinkedServiceResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private Object authenticationType;
        private @Nullable Object commandTimeout;
        private @Nullable IntegrationRuntimeReferenceResponse connectVia;
        private @Nullable Object connectionTimeout;
        private Object database;
        private @Nullable String description;
        private @Nullable Object encoding;
        private @Nullable String encryptedCredential;
        private @Nullable Object logParameters;
        private @Nullable Map parameters;
        private @Nullable AzureKeyVaultSecretReferenceResponse password;
        private @Nullable Object pooling;
        private @Nullable Object port;
        private @Nullable Object readBufferSize;
        private @Nullable Object schema;
        private Object server;
        private @Nullable Object sslCertificate;
        private @Nullable Object sslKey;
        private Object sslMode;
        private @Nullable Object sslPassword;
        private @Nullable Object timezone;
        private @Nullable Object trustServerCertificate;
        private String type;
        private Object username;
        private @Nullable String version;
        public Builder() {}
        public Builder(PostgreSqlV2LinkedServiceResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.authenticationType = defaults.authenticationType;
    	      this.commandTimeout = defaults.commandTimeout;
    	      this.connectVia = defaults.connectVia;
    	      this.connectionTimeout = defaults.connectionTimeout;
    	      this.database = defaults.database;
    	      this.description = defaults.description;
    	      this.encoding = defaults.encoding;
    	      this.encryptedCredential = defaults.encryptedCredential;
    	      this.logParameters = defaults.logParameters;
    	      this.parameters = defaults.parameters;
    	      this.password = defaults.password;
    	      this.pooling = defaults.pooling;
    	      this.port = defaults.port;
    	      this.readBufferSize = defaults.readBufferSize;
    	      this.schema = defaults.schema;
    	      this.server = defaults.server;
    	      this.sslCertificate = defaults.sslCertificate;
    	      this.sslKey = defaults.sslKey;
    	      this.sslMode = defaults.sslMode;
    	      this.sslPassword = defaults.sslPassword;
    	      this.timezone = defaults.timezone;
    	      this.trustServerCertificate = defaults.trustServerCertificate;
    	      this.type = defaults.type;
    	      this.username = defaults.username;
    	      this.version = defaults.version;
        }

        @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 authenticationType(Object authenticationType) {
            if (authenticationType == null) {
              throw new MissingRequiredPropertyException("PostgreSqlV2LinkedServiceResponse", "authenticationType");
            }
            this.authenticationType = authenticationType;
            return this;
        }
        @CustomType.Setter
        public Builder commandTimeout(@Nullable Object commandTimeout) {

            this.commandTimeout = commandTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder connectVia(@Nullable IntegrationRuntimeReferenceResponse connectVia) {

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

            this.connectionTimeout = connectionTimeout;
            return this;
        }
        @CustomType.Setter
        public Builder database(Object database) {
            if (database == null) {
              throw new MissingRequiredPropertyException("PostgreSqlV2LinkedServiceResponse", "database");
            }
            this.database = database;
            return this;
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.encoding = encoding;
            return this;
        }
        @CustomType.Setter
        public Builder encryptedCredential(@Nullable String encryptedCredential) {

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

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

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

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

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

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

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

            this.schema = schema;
            return this;
        }
        @CustomType.Setter
        public Builder server(Object server) {
            if (server == null) {
              throw new MissingRequiredPropertyException("PostgreSqlV2LinkedServiceResponse", "server");
            }
            this.server = server;
            return this;
        }
        @CustomType.Setter
        public Builder sslCertificate(@Nullable Object sslCertificate) {

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

            this.sslKey = sslKey;
            return this;
        }
        @CustomType.Setter
        public Builder sslMode(Object sslMode) {
            if (sslMode == null) {
              throw new MissingRequiredPropertyException("PostgreSqlV2LinkedServiceResponse", "sslMode");
            }
            this.sslMode = sslMode;
            return this;
        }
        @CustomType.Setter
        public Builder sslPassword(@Nullable Object sslPassword) {

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

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

            this.trustServerCertificate = trustServerCertificate;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("PostgreSqlV2LinkedServiceResponse", "type");
            }
            this.type = type;
            return this;
        }
        @CustomType.Setter
        public Builder username(Object username) {
            if (username == null) {
              throw new MissingRequiredPropertyException("PostgreSqlV2LinkedServiceResponse", "username");
            }
            this.username = username;
            return this;
        }
        @CustomType.Setter
        public Builder version(@Nullable String version) {

            this.version = version;
            return this;
        }
        public PostgreSqlV2LinkedServiceResponse build() {
            final var _resultValue = new PostgreSqlV2LinkedServiceResponse();
            _resultValue.annotations = annotations;
            _resultValue.authenticationType = authenticationType;
            _resultValue.commandTimeout = commandTimeout;
            _resultValue.connectVia = connectVia;
            _resultValue.connectionTimeout = connectionTimeout;
            _resultValue.database = database;
            _resultValue.description = description;
            _resultValue.encoding = encoding;
            _resultValue.encryptedCredential = encryptedCredential;
            _resultValue.logParameters = logParameters;
            _resultValue.parameters = parameters;
            _resultValue.password = password;
            _resultValue.pooling = pooling;
            _resultValue.port = port;
            _resultValue.readBufferSize = readBufferSize;
            _resultValue.schema = schema;
            _resultValue.server = server;
            _resultValue.sslCertificate = sslCertificate;
            _resultValue.sslKey = sslKey;
            _resultValue.sslMode = sslMode;
            _resultValue.sslPassword = sslPassword;
            _resultValue.timezone = timezone;
            _resultValue.trustServerCertificate = trustServerCertificate;
            _resultValue.type = type;
            _resultValue.username = username;
            _resultValue.version = version;
            return _resultValue;
        }
    }
}