public class Acl extends AbstractModel
Constructor and Description |
---|
Acl() |
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Get The default value is `*`, which means that any host can access.
|
Long |
getOperation()
Get ACL operation mode.
|
Long |
getPermissionType()
Get Permission type.
|
String |
getPrincipal()
Get User list.
|
String |
getResourceName()
Get Resource name, which is related to `resourceType`.
|
Long |
getResourceType()
Get ACL resource type.
|
void |
setHost(String Host)
Set The default value is `*`, which means that any host can access.
|
void |
setOperation(Long Operation)
Set ACL operation mode.
|
void |
setPermissionType(Long PermissionType)
Set Permission type.
|
void |
setPrincipal(String Principal)
Set User list.
|
void |
setResourceName(String ResourceName)
Set Resource name, which is related to `resourceType`.
|
void |
setResourceType(Long ResourceType)
Set ACL resource type.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public Long getResourceType()
public void setResourceType(Long ResourceType)
ResourceType
- ACL resource type. 0: UNKNOWN, 1: ANY, 2: TOPIC, 3: GROUP, 4: CLUSTER, 5: TRANSACTIONAL_ID. Currently, only `TOPIC` is available,public String getResourceName()
public void setResourceName(String ResourceName)
ResourceName
- Resource name, which is related to `resourceType`. For example, if `resourceType` is `TOPIC`, this field indicates the topic name; if `resourceType` is `GROUP`, this field indicates the group namepublic String getPrincipal()
public void setPrincipal(String Principal)
Principal
- User list. The default value is `User:*`, which means that any user can access. The current user can only be one included in the user list
Note: this field may return null, indicating that no valid values can be obtained.public String getHost()
public void setHost(String Host)
Host
- The default value is `*`, which means that any host can access. Currently, CKafka does not support the host as `*`, but the future product based on the open-source Kafka will directly support this
Note: this field may return null, indicating that no valid values can be obtained.public Long getOperation()
public void setOperation(Long Operation)
Operation
- ACL operation mode. 0: UNKNOWN, 1: ANY, 2: ALL, 3: READ, 4: WRITE, 5: CREATE, 6: DELETE, 7: ALTER, 8: DESCRIBE, 9: CLUSTER_ACTION, 10: DESCRIBE_CONFIGS, 11: ALTER_CONFIGS, 12: IDEMPOTEN_WRITEpublic Long getPermissionType()
public void setPermissionType(Long PermissionType)
PermissionType
- Permission type. 0: UNKNOWN, 1: ANY, 2: DENY, 3: ALLOWCopyright © 2020. All rights reserved.