public class UpdatePolicyRequest extends AbstractModel
header, skipSign| 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 | getContent()Get 策略内容。参考CAM策略语法 | 
| String | getDescription()Get 策略描述。 | 
| String | getName()Get 策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_) | 
| Long | getPolicyId()Get 需要编辑的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取 | 
| String | getType()Get 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略 | 
| void | setContent(String Content)Set 策略内容。参考CAM策略语法 | 
| void | setDescription(String Description)Set 策略描述。 | 
| void | setName(String Name)Set 策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_) | 
| void | setPolicyId(Long PolicyId)Set 需要编辑的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取 | 
| void | setType(String Type)Set 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略 | 
| 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 UpdatePolicyRequest()
public UpdatePolicyRequest(UpdatePolicyRequest source)
public Long getPolicyId()
public void setPolicyId(Long PolicyId)
PolicyId - 需要编辑的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取public String getDescription()
public void setDescription(String Description)
Description - 策略描述。public String getContent()
public void setContent(String Content)
Content - 策略内容。参考CAM策略语法public String getName()
public void setName(String Name)
Name - 策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)public String getType()
public void setType(String Type)
Type - 策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略Copyright © 2025. All rights reserved.