Class TokenApplyingOptions
java.lang.Object
io.vertx.ext.consul.token.TokenApplyingOptions
- Direct Known Subclasses:
NodeTokenApplyingOptions, ServiceTokenApplyingOptions
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddDatacenter(String datacenter) Adds a datacenter, likesetDatacenters(List)getName()setDatacenters(List<String> datacenters) Sets an optional datacenters.Sets a nametoJson()
-
Field Details
-
DATACENTERS_KEY
- See Also:
-
name
The name of the service/node -
datacenters
-
-
Constructor Details
-
TokenApplyingOptions
public TokenApplyingOptions()
-
-
Method Details
-
getName
-
setName
Sets a name- Parameters:
name- - must be no longer than 256 characters, must start and end with a lowercase alphanumeric character, and can only contain lowercase alphanumeric characters as well as '-' and '_'.
-
getDatacenters
-
setDatacenters
Sets an optional datacenters. By default, the policy is valid in all datacenters- Parameters:
datacenters- list of datacenters- See Also:
-
addDatacenter
Adds a datacenter, likesetDatacenters(List)- See Also:
-
toJson
-