public class ConfigResource extends Object
Constructor and Description |
---|
ConfigResource()
Constructor
|
ConfigResource(org.apache.kafka.common.config.ConfigResource.Type type,
String name)
Constructor
|
ConfigResource(JsonObject json)
Constructor (from JSON representation)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getName() |
org.apache.kafka.common.config.ConfigResource.Type |
getType() |
int |
hashCode() |
boolean |
isDefault() |
ConfigResource |
setDefault(boolean isDefault)
Set if this is the default resource of a resource type.
|
ConfigResource |
setName(String name)
Set the resource name
|
ConfigResource |
setType(org.apache.kafka.common.config.ConfigResource.Type type)
Set the resource type
|
JsonObject |
toJson()
Convert object to JSON representation
|
String |
toString() |
public ConfigResource()
public ConfigResource(org.apache.kafka.common.config.ConfigResource.Type type, String name)
type
- a non-null resource typename
- a non-null resource namepublic ConfigResource(JsonObject json)
json
- JSON representationpublic String getName()
public ConfigResource setName(String name)
name
- the resource namepublic boolean isDefault()
public ConfigResource setDefault(boolean isDefault)
isDefault
- if this is the default resource of a resource typepublic org.apache.kafka.common.config.ConfigResource.Type getType()
public ConfigResource setType(org.apache.kafka.common.config.ConfigResource.Type type)
type
- the resource typepublic JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.