public class IdentityPolicy extends AbstractModel
header, skipSign| Constructor and Description |
|---|
IdentityPolicy() |
IdentityPolicy(IdentityPolicy 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 |
getPolicyDocument()
Get Custom policy content, which follows the CAM policy syntax.
|
Long |
getPolicyId()
Get CAM preset policy ID, which is valid and required when PolicyType is a preset policy.
|
String |
getPolicyName()
Get CAM preset policy name, which is valid and required when PolicyType is a preset policy.
|
Long |
getPolicyType()
Get Policy type.
|
void |
setPolicyDocument(String PolicyDocument)
Set Custom policy content, which follows the CAM policy syntax.
|
void |
setPolicyId(Long PolicyId)
Set CAM preset policy ID, which is valid and required when PolicyType is a preset policy.
|
void |
setPolicyName(String PolicyName)
Set CAM preset policy name, which is valid and required when PolicyType is a preset policy.
|
void |
setPolicyType(Long PolicyType)
Set Policy type.
|
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, toJsonStringpublic IdentityPolicy()
public IdentityPolicy(IdentityPolicy source)
public Long getPolicyId()
public void setPolicyId(Long PolicyId)
PolicyId - CAM preset policy ID, which is valid and required when PolicyType is a preset policy.public String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName - CAM preset policy name, which is valid and required when PolicyType is a preset policy.public Long getPolicyType()
public void setPolicyType(Long PolicyType)
PolicyType - Policy type. Valid values: 1 (custom policy), 2 (preset policy). The default is 2.
Note: This field may return null, indicating that no valid values can be obtained.public String getPolicyDocument()
public void setPolicyDocument(String PolicyDocument)
PolicyDocument - Custom policy content, which follows the CAM policy syntax. It is valid and required when PolicyType is a custom policy.
Note: This field may return null, indicating that no valid values can be obtained.Copyright © 2025. All rights reserved.