io.vertx.ext.consul.token

## Class PolicyLink

- java.lang.Object
- - io.vertx.ext.consul.token.PolicyLink

-     public class PolicyLink
      extends Object

  It is an object with an "ID" and/or "Name" field to specify a policy

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PolicyLink()`
    `PolicyLink(JsonObject json)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getId()`
    `String` | `getName()`
    `PolicyLink` | `setId(String id)` Sets a policy id
    `PolicyLink` | `setName(String name)` Sets a policy name
    `JsonObject` | `toJson()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### PolicyLink

          public PolicyLink()

    - #### PolicyLink

          public PolicyLink(JsonObject json)

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

    - #### setId

          public PolicyLink setId(String id)

      Sets a policy id
      Parameters:
        `id` - uuid

    - #### setName

          public PolicyLink setName(String name)

      Sets a policy name
      Parameters:
        `name` -

    - #### getId

          public String getId()

    - #### getName

          public String getName()

Copyright © 2024 Eclipse. All rights reserved.