Package 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 Description PolicyLink()
PolicyLink(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getId()
String
getName()
PolicyLink
setId(String id)
Sets a policy idPolicyLink
setName(String name)
Sets a policy nameJsonObject
toJson()
-
-
-
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()
-
-