public class TagResourcesRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 类和说明 |
|---|---|
static class |
TagResourcesRequest.TagResourcesRequestTag |
| 限定符和类型 | 字段和说明 |
|---|---|
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.
|
List<TagResourcesRequest.TagResourcesRequestTag> |
tag
The tags.
|
| 构造器和说明 |
|---|
TagResourcesRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static TagResourcesRequest |
build(Map<String,?> map) |
String |
getClientToken() |
Boolean |
getDryRun() |
String |
getRegionId() |
List<String> |
getResourceId() |
String |
getResourceType() |
List<TagResourcesRequest.TagResourcesRequestTag> |
getTag() |
TagResourcesRequest |
setClientToken(String clientToken) |
TagResourcesRequest |
setDryRun(Boolean dryRun) |
TagResourcesRequest |
setRegionId(String regionId) |
TagResourcesRequest |
setResourceId(List<String> resourceId) |
TagResourcesRequest |
setResourceType(String resourceType) |
TagResourcesRequest |
setTag(List<TagResourcesRequest.TagResourcesRequestTag> tag) |
@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. Valid values:
* **loadbalancer**: a Network Load Balancer (NLB) instance
* **securitypolicy**: a security policy
* **servergroup**: a server group
@NameInMap(value="Tag") public List<TagResourcesRequest.TagResourcesRequestTag> tag
The tags.
public static TagResourcesRequest build(Map<String,?> map) throws Exception
Exceptionpublic TagResourcesRequest setClientToken(String clientToken)
public String getClientToken()
public TagResourcesRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public TagResourcesRequest setRegionId(String regionId)
public String getRegionId()
public TagResourcesRequest setResourceId(List<String> resourceId)
public TagResourcesRequest setResourceType(String resourceType)
public String getResourceType()
public TagResourcesRequest setTag(List<TagResourcesRequest.TagResourcesRequestTag> tag)
public List<TagResourcesRequest.TagResourcesRequestTag> getTag()
Copyright © 2023. All rights reserved.