Package io.vertx.kafka.admin
Class ConfigSynonym
- java.lang.Object
-
- io.vertx.kafka.admin.ConfigSynonym
-
public class ConfigSynonym extends Object
Class representing a configuration synonym of aConfigEntry
-
-
Constructor Summary
Constructors Constructor Description ConfigSynonym()ConstructorConfigSynonym(JsonObject json)Constructor (from JSON representation)ConfigSynonym(String name, String value, org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()org.apache.kafka.clients.admin.ConfigEntry.ConfigSourcegetSource()StringgetValue()ConfigSynonymsetName(String name)Set the name of this configurationConfigSynonymsetSource(org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source)Set the source of this configurationConfigSynonymsetValue(String value)Set the value of this configuration, which may be null if the configuration is sensitiveJsonObjecttoJson()Convert object to JSON representationStringtoString()
-
-
-
Constructor Detail
-
ConfigSynonym
public ConfigSynonym()
Constructor
-
ConfigSynonym
public ConfigSynonym(String name, String value, org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source)
Constructor- Parameters:
name- the name of this configurationvalue- the value of this configuration, which may be null if the configuration is sensitivesource- the source of this configuration
-
ConfigSynonym
public ConfigSynonym(JsonObject json)
Constructor (from JSON representation)- Parameters:
json- JSON representation
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name of this configuration
-
setName
public ConfigSynonym setName(String name)
Set the name of this configuration- Parameters:
name- the name of this configuration- Returns:
- current instance of the class to be fluent
-
getValue
public String getValue()
- Returns:
- the value of this configuration, which may be null if the configuration is sensitive
-
setValue
public ConfigSynonym setValue(String value)
Set the value of this configuration, which may be null if the configuration is sensitive- Parameters:
value- the value of this configuration, which may be null if the configuration is sensitive- Returns:
- current instance of the class to be fluent
-
getSource
public org.apache.kafka.clients.admin.ConfigEntry.ConfigSource getSource()
- Returns:
- the source of this configuration
-
setSource
public ConfigSynonym setSource(org.apache.kafka.clients.admin.ConfigEntry.ConfigSource source)
Set the source of this configuration- Parameters:
source- the source of this configuration- Returns:
- current instance of the class to be fluent
-
toJson
public JsonObject toJson()
Convert object to JSON representation- Returns:
- JSON representation
-
-