io.vertx.kotlin.mssqlclient.MSSQLInfo.kt Maven / Gradle / Ivy
/*
* Copyright 2019 Red Hat, Inc.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/
package io.vertx.kotlin.mssqlclient
import io.vertx.mssqlclient.MSSQLInfo
/**
* A function providing a DSL for building [io.vertx.mssqlclient.MSSQLInfo] objects.
*
* An information message sent by the server to the client.
*
* @param lineNumber
* @param message
* @param number
* @param procedureName
* @param serverName
* @param severity
* @param state
*
*
* NOTE: This function has been automatically generated from the [io.vertx.mssqlclient.MSSQLInfo original] using Vert.x codegen.
*/
fun mssqlInfoOf(
lineNumber: Int? = null,
message: String? = null,
number: Int? = null,
procedureName: String? = null,
serverName: String? = null,
severity: Byte? = null,
state: Byte? = null): MSSQLInfo = io.vertx.mssqlclient.MSSQLInfo().apply {
if (lineNumber != null) {
this.setLineNumber(lineNumber)
}
if (message != null) {
this.setMessage(message)
}
if (number != null) {
this.setNumber(number)
}
if (procedureName != null) {
this.setProcedureName(procedureName)
}
if (serverName != null) {
this.setServerName(serverName)
}
if (severity != null) {
this.setSeverity(severity)
}
if (state != null) {
this.setState(state)
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy