public class UntagResourcesRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
all
Specifies whether to remove all tags from the specified resource.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
Boolean |
dryRun
Specifies whether to perform a dry run.
|
String |
regionId
The region ID of the resource.
|
List<String> |
resourceId
The ID of the resource.
|
String |
resourceType
The type of the resource from which you want to remove tags.
|
List<String> |
tagKey
The key of the tag that you want to remove.
|
| 构造器和说明 |
|---|
UntagResourcesRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static UntagResourcesRequest |
build(Map<String,?> map) |
Boolean |
getAll() |
String |
getClientToken() |
Boolean |
getDryRun() |
String |
getRegionId() |
List<String> |
getResourceId() |
String |
getResourceType() |
List<String> |
getTagKey() |
UntagResourcesRequest |
setAll(Boolean all) |
UntagResourcesRequest |
setClientToken(String clientToken) |
UntagResourcesRequest |
setDryRun(Boolean dryRun) |
UntagResourcesRequest |
setRegionId(String regionId) |
UntagResourcesRequest |
setResourceId(List<String> resourceId) |
UntagResourcesRequest |
setResourceType(String resourceType) |
UntagResourcesRequest |
setTagKey(List<String> tagKey) |
@NameInMap(value="All") public Boolean all
Specifies whether to remove all tags from the specified resource. Valid values:
* **true**: removes all tags from the specified resource.
* **false**: does not remove all tags from the specified resource. This is the default value.
@NameInMap(value="ClientToken") public String clientToken
The client token that is used to ensure the idempotence of the request.
You can use the client to generate the value, but you must make sure that it is unique among different requests. The client token can contain only ASCII characters.
> If you do not set this parameter, the system automatically uses the value of **RequestId** as the value of **ClientToken**. The value of **RequestId** is different for each API request.
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform a dry run. Valid values:
* **true**: performs a dry run. The system checks the required parameters, request syntax, and limits. If the request fails the dry run, an error message is returned. If the request passes the dry run, the `DryRunOperation` error code is returned.
* **false**: performs a dry run and sends the request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed. This is the default value.
@NameInMap(value="RegionId") public String regionId
The region ID of the resource.
You can call the [DescribeRegions](~~443657~~) operation to query the most recent region list.
@NameInMap(value="ResourceId") public List<String> resourceId
The ID of the resource. You can specify up to 50 resource IDs in each call.
@NameInMap(value="ResourceType") public String resourceType
The type of the resource from which you want to remove tags. Valid values:
* **loadbalancer**: a Network Load Balancer (NLB) instance
* **securitypolicy**: a security policy
* **servergroup**: a server group
public static UntagResourcesRequest build(Map<String,?> map) throws Exception
Exceptionpublic UntagResourcesRequest setAll(Boolean all)
public Boolean getAll()
public UntagResourcesRequest setClientToken(String clientToken)
public String getClientToken()
public UntagResourcesRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public UntagResourcesRequest setRegionId(String regionId)
public String getRegionId()
public UntagResourcesRequest setResourceId(List<String> resourceId)
public UntagResourcesRequest setResourceType(String resourceType)
public String getResourceType()
public UntagResourcesRequest setTagKey(List<String> tagKey)
Copyright © 2023. All rights reserved.