public class EnableNatGatewayEcsMetricRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 字段和说明 |
---|---|
Boolean |
dryRun
Specifies whether to perform only a dry run, without performing the actual request.
|
String |
natGatewayId
The ID of the NAT gateway for which you want to enable ECS traffic monitoring.
|
String |
regionId
The region ID of the NAT gateway.
|
构造器和说明 |
---|
EnableNatGatewayEcsMetricRequest() |
限定符和类型 | 方法和说明 |
---|---|
static EnableNatGatewayEcsMetricRequest |
build(Map<String,?> map) |
Boolean |
getDryRun() |
String |
getNatGatewayId() |
String |
getRegionId() |
EnableNatGatewayEcsMetricRequest |
setDryRun(Boolean dryRun) |
EnableNatGatewayEcsMetricRequest |
setNatGatewayId(String natGatewayId) |
EnableNatGatewayEcsMetricRequest |
setRegionId(String regionId) |
@NameInMap(value="DryRun") public Boolean dryRun
Specifies whether to perform only a dry run, without performing the actual request. Valid values:
true: performs only a dry run. The system checks the request for potential issues, including missing parameter values, incorrect request syntax, and service 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 (default): performs a dry run and performs the actual request. If the request passes the dry run, a 2xx HTTP status code is returned and the operation is performed.
example:false
@NameInMap(value="NatGatewayId") public String natGatewayId
The ID of the NAT gateway for which you want to enable ECS traffic monitoring.
This parameter is required.
example:ngw-2vc53wynunp35lw1y****
@NameInMap(value="RegionId") public String regionId
The region ID of the NAT gateway. You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-chengdu
public static EnableNatGatewayEcsMetricRequest build(Map<String,?> map) throws Exception
Exception
public EnableNatGatewayEcsMetricRequest setDryRun(Boolean dryRun)
public Boolean getDryRun()
public EnableNatGatewayEcsMetricRequest setNatGatewayId(String natGatewayId)
public String getNatGatewayId()
public EnableNatGatewayEcsMetricRequest setRegionId(String regionId)
public String getRegionId()
Copyright © 2024. All rights reserved.