public class CreateAclRequest extends AbstractModel
Constructor and Description |
---|
CreateAclRequest() |
CreateAclRequest(CreateAclRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getHost()
Get The default value is `*`, which means that any host can access.
|
String |
getInstanceId()
Get Instance ID information
|
Long |
getOperation()
Get ACL operation mode.
|
Long |
getPermissionType()
Get Permission type.
|
String |
getPrincipal()
Get The list of users allowed to access the topic.
|
String |
getResourceName()
Get Resource name, which is related to `resourceType`.
|
String |
getResourceNameList()
Get The resource name list, which is in JSON string format.
|
Long |
getResourceType()
Get ACL resource type.
|
void |
setHost(String Host)
Set The default value is `*`, which means that any host can access.
|
void |
setInstanceId(String InstanceId)
Set Instance ID information
|
void |
setOperation(Long Operation)
Set ACL operation mode.
|
void |
setPermissionType(Long PermissionType)
Set Permission type.
|
void |
setPrincipal(String Principal)
Set The list of users allowed to access the topic.
|
void |
setResourceName(String ResourceName)
Set Resource name, which is related to `resourceType`.
|
void |
setResourceNameList(String ResourceNameList)
Set The resource name list, which is in JSON string format.
|
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 CreateAclRequest()
public CreateAclRequest(CreateAclRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID informationpublic 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, and other fields will be used for future ACLs compatible with open-source Kafkapublic 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_CONFIGSpublic Long getPermissionType()
public void setPermissionType(Long PermissionType)
PermissionType
- Permission type. 0: UNKNOWN, 1: ANY, 2: DENY, 3: ALLOW. Currently, CKafka supports `ALLOW` (equivalent to allowlist), and other fields will be used for future ACLs compatible with open-source Kafkapublic 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 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 thispublic String getPrincipal()
public void setPrincipal(String Principal)
Principal
- The list of users allowed to access the topic. Default: User:*, meaning all users. The current user must be in the user list. Add `User:` before the user name (`User:A` for example).public String getResourceNameList()
public void setResourceNameList(String ResourceNameList)
ResourceNameList
- The resource name list, which is in JSON string format. Either `ResourceName` or `resourceNameList` can be specified.Copyright © 2021. All rights reserved.