public class UpdatePolicyRequest extends AbstractModel
Constructor and Description |
---|
UpdatePolicyRequest() |
UpdatePolicyRequest(UpdatePolicyRequest 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 |
getAlias()
Get Preset policy remark
|
String |
getDescription()
Get Policy description
|
String |
getPolicyDocument()
Get Policy documentation, for example: `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the service that is authorized to use the role.
|
Long |
getPolicyId()
Get Policy ID.
|
String |
getPolicyName()
Get Policy name.
|
void |
setAlias(String Alias)
Set Preset policy remark
|
void |
setDescription(String Description)
Set Policy description
|
void |
setPolicyDocument(String PolicyDocument)
Set Policy documentation, for example: `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the service that is authorized to use the role.
|
void |
setPolicyId(Long PolicyId)
Set Policy ID.
|
void |
setPolicyName(String PolicyName)
Set Policy name.
|
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 UpdatePolicyRequest()
public UpdatePolicyRequest(UpdatePolicyRequest source)
public Long getPolicyId()
public void setPolicyId(Long PolicyId)
PolicyId
- Policy ID. Either `PolicyId` or `PolicyName` must be enteredpublic String getPolicyName()
public void setPolicyName(String PolicyName)
PolicyName
- Policy name. Either `PolicyName` or `PolicyId` must be enteredpublic String getDescription()
public void setDescription(String Description)
Description
- Policy descriptionpublic String getPolicyDocument()
public void setPolicyDocument(String PolicyDocument)
PolicyDocument
- Policy documentation, for example: `{"version":"2.0","statement":[{"action":"name/sts:AssumeRole","effect":"allow","principal":{"service":["cloudaudit.cloud.tencent.com","cls.cloud.tencent.com"]}}]}`, where `principal` is used to specify the service that is authorized to use the role. For more information about this parameter, see **RoleInfo** under **Output Parameters** in the [GetRole](https://intl.cloud.tencent.com/document/product/598/36221?from_cn_redirect=1).public String getAlias()
public void setAlias(String Alias)
Alias
- Preset policy remarkCopyright © 2021. All rights reserved.