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

com.julienviet.kotlin.pgclient.PgClientOptions.kt Maven / Gradle / Ivy

package com.julienviet.kotlin.pgclient

import com.julienviet.pgclient.PgConnectOptions

/**
 * A function providing a DSL for building [com.julienviet.pgclient.PgConnectOptions] objects.
 *
 *
 * @param cachePreparedStatements
 * @param connectTimeout
 * @param crlPaths
 * @param crlValues
 * @param database
 * @param enabledCipherSuites
 * @param enabledSecureTransportProtocols
 * @param host
 * @param hostnameVerificationAlgorithm
 * @param idleTimeout
 * @param jdkSslEngineOptions
 * @param keyStoreOptions
 * @param localAddress
 * @param logActivity
 * @param metricsName
 * @param openSslEngineOptions
 * @param password
 * @param pemKeyCertOptions
 * @param pemTrustOptions
 * @param pfxKeyCertOptions
 * @param pfxTrustOptions
 * @param pipeliningLimit
 * @param port
 * @param proxyOptions
 * @param receiveBufferSize
 * @param reconnectAttempts
 * @param reconnectInterval
 * @param reuseAddress
 * @param sendBufferSize
 * @param soLinger
 * @param ssl
 * @param tcpKeepAlive
 * @param tcpNoDelay
 * @param trafficClass
 * @param trustAll
 * @param trustStoreOptions
 * @param useAlpn
 * @param usePooledBuffers
 * @param username
 *
 * 

* NOTE: This function has been automatically generated from the [com.julienviet.pgclient.PgClientOptions original] using Vert.x codegen. */ fun PgClientOptions( cachePreparedStatements: Boolean? = null, connectTimeout: Int? = null, crlPaths: Iterable? = null, crlValues: Iterable? = null, database: String? = null, enabledCipherSuites: Iterable? = null, enabledSecureTransportProtocols: Iterable? = null, host: String? = null, hostnameVerificationAlgorithm: String? = null, idleTimeout: Int? = null, jdkSslEngineOptions: io.vertx.core.net.JdkSSLEngineOptions? = null, keyStoreOptions: io.vertx.core.net.JksOptions? = null, localAddress: String? = null, logActivity: Boolean? = null, metricsName: String? = null, openSslEngineOptions: io.vertx.core.net.OpenSSLEngineOptions? = null, password: String? = null, pemKeyCertOptions: io.vertx.core.net.PemKeyCertOptions? = null, pemTrustOptions: io.vertx.core.net.PemTrustOptions? = null, pfxKeyCertOptions: io.vertx.core.net.PfxOptions? = null, pfxTrustOptions: io.vertx.core.net.PfxOptions? = null, pipeliningLimit: Int? = null, port: Int? = null, proxyOptions: io.vertx.core.net.ProxyOptions? = null, receiveBufferSize: Int? = null, reconnectAttempts: Int? = null, reconnectInterval: Long? = null, reuseAddress: Boolean? = null, sendBufferSize: Int? = null, soLinger: Int? = null, ssl: Boolean? = null, tcpKeepAlive: Boolean? = null, tcpNoDelay: Boolean? = null, trafficClass: Int? = null, trustAll: Boolean? = null, trustStoreOptions: io.vertx.core.net.JksOptions? = null, useAlpn: Boolean? = null, usePooledBuffers: Boolean? = null, username: String? = null): PgConnectOptions = PgConnectOptions().apply { if (cachePreparedStatements != null) { this.setCachePreparedStatements(cachePreparedStatements) } if (connectTimeout != null) { this.setConnectTimeout(connectTimeout) } if (crlPaths != null) { for (item in crlPaths) { this.addCrlPath(item) } } if (crlValues != null) { for (item in crlValues) { this.addCrlValue(item) } } if (database != null) { this.setDatabase(database) } if (enabledCipherSuites != null) { for (item in enabledCipherSuites) { this.addEnabledCipherSuite(item) } } if (enabledSecureTransportProtocols != null) { for (item in enabledSecureTransportProtocols) { this.addEnabledSecureTransportProtocol(item) } } if (host != null) { this.setHost(host) } if (hostnameVerificationAlgorithm != null) { this.setHostnameVerificationAlgorithm(hostnameVerificationAlgorithm) } if (idleTimeout != null) { this.setIdleTimeout(idleTimeout) } if (jdkSslEngineOptions != null) { this.setJdkSslEngineOptions(jdkSslEngineOptions) } if (keyStoreOptions != null) { this.setKeyStoreOptions(keyStoreOptions) } if (localAddress != null) { this.setLocalAddress(localAddress) } if (logActivity != null) { this.setLogActivity(logActivity) } if (metricsName != null) { this.setMetricsName(metricsName) } if (openSslEngineOptions != null) { this.setOpenSslEngineOptions(openSslEngineOptions) } if (password != null) { this.setPassword(password) } if (pemKeyCertOptions != null) { this.setPemKeyCertOptions(pemKeyCertOptions) } if (pemTrustOptions != null) { this.setPemTrustOptions(pemTrustOptions) } if (pfxKeyCertOptions != null) { this.setPfxKeyCertOptions(pfxKeyCertOptions) } if (pfxTrustOptions != null) { this.setPfxTrustOptions(pfxTrustOptions) } if (pipeliningLimit != null) { this.setPipeliningLimit(pipeliningLimit) } if (port != null) { this.setPort(port) } if (proxyOptions != null) { this.setProxyOptions(proxyOptions) } if (receiveBufferSize != null) { this.setReceiveBufferSize(receiveBufferSize) } if (reconnectAttempts != null) { this.setReconnectAttempts(reconnectAttempts) } if (reconnectInterval != null) { this.setReconnectInterval(reconnectInterval) } if (reuseAddress != null) { this.setReuseAddress(reuseAddress) } if (sendBufferSize != null) { this.setSendBufferSize(sendBufferSize) } if (soLinger != null) { this.setSoLinger(soLinger) } if (ssl != null) { this.setSsl(ssl) } if (tcpKeepAlive != null) { this.setTcpKeepAlive(tcpKeepAlive) } if (tcpNoDelay != null) { this.setTcpNoDelay(tcpNoDelay) } if (trafficClass != null) { this.setTrafficClass(trafficClass) } if (trustAll != null) { this.setTrustAll(trustAll) } if (trustStoreOptions != null) { this.setTrustStoreOptions(trustStoreOptions) } if (useAlpn != null) { this.setUseAlpn(useAlpn) } if (usePooledBuffers != null) { this.setUsePooledBuffers(usePooledBuffers) } if (username != null) { this.setUsername(username) } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy