public class CreateCustomerGatewayRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateCustomerGatewayRequest.CreateCustomerGatewayRequestTags |
限定符和类型 | 字段和说明 |
---|---|
String |
asn
The autonomous system number (ASN) of the gateway device in the data center.
|
String |
authKey
The authentication key of the BGP routing protocol for the gateway device in the data center.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the customer gateway.
|
String |
ipAddress
The public IP address of the gateway device in the data center.
|
String |
name
The name of the customer gateway.
|
String |
ownerAccount |
Long |
ownerId |
String |
regionId
The region ID of the customer gateway.
|
String |
resourceGroupId
The ID of the resource group to which the customer gateway belongs.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
List<CreateCustomerGatewayRequest.CreateCustomerGatewayRequestTags> |
tags
The tag value.
|
构造器和说明 |
---|
CreateCustomerGatewayRequest() |
@NameInMap(value="Asn") public String asn
The autonomous system number (ASN) of the gateway device in the data center.
Asn is a 4-byte number. You can enter the number in two segments and separate the first 16 bits from the following 16 bits with a period (.). Enter the number in each segment in the decimal format.
For example, if you enter 123.456, the ASN is: 123 × 65536 + 456 = 8061384.
example:65530
@NameInMap(value="AuthKey") public String authKey
The authentication key of the BGP routing protocol for the gateway device in the data center.
The key must be 1 to 64 characters in length. It can contain only ASCII characters and cannot contain spaces or question marks (?).
example:AuthKey****
@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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.
example:If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request.
02fb3da4-130e-11e9-8e44****
@NameInMap(value="Description") public String description
The description of the customer gateway.
The description must be 1 to 100 characters in length, and cannot start with http://
or https://
.
desctest
@NameInMap(value="IpAddress") public String ipAddress
The public IP address of the gateway device in the data center.
This parameter is required.
example:101.12.XX.XX
@NameInMap(value="Name") public String name
The name of the customer gateway.
The name must be 1 to 100 characters in length, and cannot start with http://
or https://
.
nametest
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="RegionId") public String regionId
The region ID of the customer gateway.
You can call the DescribeRegions operation to query the most recent region list.
This parameter is required.
example:cn-shanghai
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group to which the customer gateway belongs.
You can call the ListResourceGroups operation to query the resource group list.
If you do not specify a resource group, the customer gateway will belong to the default resource group after being created.
rg-aek2qo2h4jy****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Tags") public List<CreateCustomerGatewayRequest.CreateCustomerGatewayRequestTags> tags
The tag value.
The tag value can be an empty string and cannot exceed 128 characters in length. It cannot start with aliyun
or acs:
, and cannot contain http://
or https://
.
Each tag key corresponds to one tag value. You can specify up to 20 tag values in each call.
public static CreateCustomerGatewayRequest build(Map<String,?> map) throws Exception
Exception
public CreateCustomerGatewayRequest setAsn(String asn)
public String getAsn()
public CreateCustomerGatewayRequest setAuthKey(String authKey)
public String getAuthKey()
public CreateCustomerGatewayRequest setClientToken(String clientToken)
public String getClientToken()
public CreateCustomerGatewayRequest setDescription(String description)
public String getDescription()
public CreateCustomerGatewayRequest setIpAddress(String ipAddress)
public String getIpAddress()
public CreateCustomerGatewayRequest setName(String name)
public String getName()
public CreateCustomerGatewayRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateCustomerGatewayRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateCustomerGatewayRequest setRegionId(String regionId)
public String getRegionId()
public CreateCustomerGatewayRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateCustomerGatewayRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateCustomerGatewayRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateCustomerGatewayRequest setTags(List<CreateCustomerGatewayRequest.CreateCustomerGatewayRequestTags> tags)
public List<CreateCustomerGatewayRequest.CreateCustomerGatewayRequestTags> getTags()
Copyright © 2024. All rights reserved.