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

io.vertx.kotlin.ext.consul.Service.kt Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
/*
 * 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.ext.consul

import io.vertx.ext.consul.Service
import io.vertx.ext.consul.TxnOperationType

/**
 * A function providing a DSL for building [io.vertx.ext.consul.Service] objects.
 *
 * Holds properties of service and node that its containing
 *
 * @param node  Set node name
 * @param nodeAddress  Set node address
 * @param id  Set ID of service
 * @param name  Set service name
 * @param tags  Set list of service tags
 * @param address  Set service address
 * @param meta  Specifies arbitrary KV metadata linked to the service instance.
 * @param port  Set service port
 * @param createIndex  Set the internal index value that represents when the entry was created.
 * @param modifyIndex  Set the last index that modified this key.
 *
 * 

* NOTE: This function has been automatically generated from the [io.vertx.ext.consul.Service original] using Vert.x codegen. */ fun serviceOf( node: String? = null, nodeAddress: String? = null, id: String? = null, name: String? = null, tags: Iterable? = null, address: String? = null, meta: Map? = null, port: Int? = null, createIndex: Long? = null, modifyIndex: Long? = null): Service = io.vertx.ext.consul.Service().apply { if (node != null) { this.setNode(node) } if (nodeAddress != null) { this.setNodeAddress(nodeAddress) } if (id != null) { this.setId(id) } if (name != null) { this.setName(name) } if (tags != null) { this.setTags(tags.toList()) } if (address != null) { this.setAddress(address) } if (meta != null) { this.setMeta(meta) } if (port != null) { this.setPort(port) } if (createIndex != null) { this.setCreateIndex(createIndex) } if (modifyIndex != null) { this.setModifyIndex(modifyIndex) } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy