public class CreateGatewayRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
enableInternet
Specifies whether to enable Internet access.
|
Boolean |
enableIntranet
Specifies whether to enable private access.
|
String |
instanceType
The instance type used by the private gateway.
|
String |
name
The alias of the private gateway.
|
Integer |
replicas
The number of nodes in the private gateway.
|
String |
resourceName
The resource group ID.
|
| 构造器和说明 |
|---|
CreateGatewayRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static CreateGatewayRequest |
build(Map<String,?> map) |
Boolean |
getEnableInternet() |
Boolean |
getEnableIntranet() |
String |
getInstanceType() |
String |
getName() |
Integer |
getReplicas() |
String |
getResourceName() |
CreateGatewayRequest |
setEnableInternet(Boolean enableInternet) |
CreateGatewayRequest |
setEnableIntranet(Boolean enableIntranet) |
CreateGatewayRequest |
setInstanceType(String instanceType) |
CreateGatewayRequest |
setName(String name) |
CreateGatewayRequest |
setReplicas(Integer replicas) |
CreateGatewayRequest |
setResourceName(String resourceName) |
@NameInMap(value="ResourceName") public String resourceName
The resource group ID. To obtain a resource group ID, see the ResourceId field in the response of the ListResources operation.
example:eas-r-4gt8twzwllfo******
@NameInMap(value="EnableInternet") public Boolean enableInternet
Specifies whether to enable Internet access. Default value: false.
Valid values:
false
@NameInMap(value="EnableIntranet") public Boolean enableIntranet
Specifies whether to enable private access. Default value: true.
Valid values:
true
@NameInMap(value="InstanceType") public String instanceType
The instance type used by the private gateway. Valid values:
This parameter is required.
example:ecs.c6.4xlarge
@NameInMap(value="Name") public String name
The alias of the private gateway.
example:mygateway1
@NameInMap(value="Replicas") public Integer replicas
The number of nodes in the private gateway.
example:2
public static CreateGatewayRequest build(Map<String,?> map) throws Exception
Exceptionpublic CreateGatewayRequest setResourceName(String resourceName)
public String getResourceName()
public CreateGatewayRequest setEnableInternet(Boolean enableInternet)
public Boolean getEnableInternet()
public CreateGatewayRequest setEnableIntranet(Boolean enableIntranet)
public Boolean getEnableIntranet()
public CreateGatewayRequest setInstanceType(String instanceType)
public String getInstanceType()
public CreateGatewayRequest setName(String name)
public String getName()
public CreateGatewayRequest setReplicas(Integer replicas)
public Integer getReplicas()
Copyright © 2024. All rights reserved.