public class AuthorizationPolicyItem extends AbstractModel
header, skipSign
Constructor and Description |
---|
AuthorizationPolicyItem() |
AuthorizationPolicyItem(AuthorizationPolicyItem 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 |
getActions()
Get 操作
connect:连接
pub:发布mqtt消息
sub:订阅mqtt消息
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
String |
getClientId()
Get 条件-连接设备ID,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
Long |
getCreatedTime()
Get 创建时间。毫秒级时间戳 。
|
String |
getEffect()
Get 决策
allow:允许符合该策略的设备的访问请求。
deny:拒绝覆盖该策略的设备的访问请求。
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
Long |
getId()
Get 策略规则ID
|
String |
getInstanceId()
Get MQTT集群ID
|
String |
getIp()
Get 条件-客户端IP地址,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
String |
getPolicyName()
Get 策略规则名
|
Long |
getPriority()
Get 策略优先级,优先级ID越小表示策略越优先检查生效。可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
String |
getQos()
Get 条件-服务质量,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
String |
getRemark()
Get 备注,长度不超过128个字符。
|
String |
getResources()
Get 资源,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
Long |
getRetain()
Get 条件-保留消息,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
1:表示匹配retain消息
2:表示匹配非retain消息
3:表示匹配retain和非retain消息
|
Long |
getUpdateTime()
Get 更新时间。毫秒级时间戳 。
|
String |
getUsername()
Get 条件-用户名,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
Long |
getVersion()
Get 规则语法版本,当前仅支持1,默认为1
|
void |
setActions(String Actions)
Set 操作
connect:连接
pub:发布mqtt消息
sub:订阅mqtt消息
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setClientId(String ClientId)
Set 条件-连接设备ID,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setCreatedTime(Long CreatedTime)
Set 创建时间。毫秒级时间戳 。
|
void |
setEffect(String Effect)
Set 决策
allow:允许符合该策略的设备的访问请求。
deny:拒绝覆盖该策略的设备的访问请求。
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setId(Long Id)
Set 策略规则ID
|
void |
setInstanceId(String InstanceId)
Set MQTT集群ID
|
void |
setIp(String Ip)
Set 条件-客户端IP地址,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setPolicyName(String PolicyName)
Set 策略规则名
|
void |
setPriority(Long Priority)
Set 策略优先级,优先级ID越小表示策略越优先检查生效。可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setQos(String Qos)
Set 条件-服务质量,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setRemark(String Remark)
Set 备注,长度不超过128个字符。
|
void |
setResources(String Resources)
Set 资源,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setRetain(Long Retain)
Set 条件-保留消息,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
1:表示匹配retain消息
2:表示匹配非retain消息
3:表示匹配retain和非retain消息
|
void |
setUpdateTime(Long UpdateTime)
Set 更新时间。毫秒级时间戳 。
|
void |
setUsername(String Username)
Set 条件-用户名,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
|
void |
setVersion(Long Version)
Set 规则语法版本,当前仅支持1,默认为1
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public AuthorizationPolicyItem()
public AuthorizationPolicyItem(AuthorizationPolicyItem source)
public Long getId()
public void setId(Long Id)
Id
- 策略规则IDpublic String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- MQTT集群IDpublic String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- 策略规则名public Long getVersion()
public void setVersion(Long Version)
Version
- 规则语法版本,当前仅支持1,默认为1public Long getPriority()
public void setPriority(Long Priority)
Priority
- 策略优先级,优先级ID越小表示策略越优先检查生效。可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getEffect()
public void setEffect(String Effect)
Effect
- 决策
allow:允许符合该策略的设备的访问请求。
deny:拒绝覆盖该策略的设备的访问请求。
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getActions()
public void setActions(String Actions)
Actions
- 操作
connect:连接
pub:发布mqtt消息
sub:订阅mqtt消息
可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getResources()
public void setResources(String Resources)
Resources
- 资源,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getClientId()
public void setClientId(String ClientId)
ClientId
- 条件-连接设备ID,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getUsername()
public void setUsername(String Username)
Username
- 条件-用户名,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getIp()
public void setIp(String Ip)
Ip
- 条件-客户端IP地址,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public String getQos()
public void setQos(String Qos)
Qos
- 条件-服务质量,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。public Long getRetain()
public void setRetain(Long Retain)
Retain
- 条件-保留消息,可参考 [数据面授权策略说明](https://cloud.tencent.com/document/product/1778/109715)。
1:表示匹配retain消息
2:表示匹配非retain消息
3:表示匹配retain和非retain消息public String getRemark()
public void setRemark(String Remark)
Remark
- 备注,长度不超过128个字符。public Long getCreatedTime()
public void setCreatedTime(Long CreatedTime)
CreatedTime
- 创建时间。毫秒级时间戳 。public Long getUpdateTime()
public void setUpdateTime(Long UpdateTime)
UpdateTime
- 更新时间。毫秒级时间戳 。Copyright © 2025. All rights reserved.