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 type (`2`: ALL, `3`: READ, `4`: WRITE, `5`: CREATE, `6`: DELETE, `7`: ALTER, `8`: DESCRIBE, `9`: CLUSTER_ACTION, `10`: DESCRIBE_CONFIGS, `11`: ALTER_CONFIGS, `12`: IDEMPOTENT_WRITE).
|
Long |
getPermissionType()
Get Permission type (`2`: DENY, `3`: ALLOW).
|
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 (`2`: TOPIC, `3`: GROUP, `4`: CLUSTER).
|
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 type (`2`: ALL, `3`: READ, `4`: WRITE, `5`: CREATE, `6`: DELETE, `7`: ALTER, `8`: DESCRIBE, `9`: CLUSTER_ACTION, `10`: DESCRIBE_CONFIGS, `11`: ALTER_CONFIGS, `12`: IDEMPOTENT_WRITE).
|
void |
setPermissionType(Long PermissionType)
Set Permission type (`2`: DENY, `3`: ALLOW).
|
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 (`2`: TOPIC, `3`: GROUP, `4`: CLUSTER).
|
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 (`2`: TOPIC, `3`: GROUP, `4`: CLUSTER).public Long getOperation()
public void setOperation(Long Operation)
Operation
- ACL operation type (`2`: ALL, `3`: READ, `4`: WRITE, `5`: CREATE, `6`: DELETE, `7`: ALTER, `8`: DESCRIBE, `9`: CLUSTER_ACTION, `10`: DESCRIBE_CONFIGS, `11`: ALTER_CONFIGS, `12`: IDEMPOTENT_WRITE).public Long getPermissionType()
public void setPermissionType(Long PermissionType)
PermissionType
- Permission type (`2`: DENY, `3`: ALLOW). CKafka currently supports `ALLOW`, which is equivalent to allowlist. `DENY` will be supported for ACLs compatible with open-source Kafka.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 name; if `resourceType` is `CLUSTER`, this field can be left empty.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 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 © 2023. All rights reserved.