public static final class CreateCustomerGatewayRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateCustomerGatewayRequest.Builder |
asn(String asn)
The autonomous system number (ASN) of the gateway device in the data center.
|
CreateCustomerGatewayRequest.Builder |
authKey(String authKey)
The authentication key of the BGP routing protocol for the gateway device in the data center.
|
CreateCustomerGatewayRequest |
build() |
CreateCustomerGatewayRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateCustomerGatewayRequest.Builder |
description(String description)
The description of the customer gateway.
|
CreateCustomerGatewayRequest.Builder |
ipAddress(String ipAddress)
The public IP address of the gateway device in the data center.
|
CreateCustomerGatewayRequest.Builder |
name(String name)
The name of the customer gateway.
|
CreateCustomerGatewayRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateCustomerGatewayRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateCustomerGatewayRequest.Builder |
regionId(String regionId)
The region ID of the customer gateway.
|
CreateCustomerGatewayRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group to which the customer gateway belongs.
|
CreateCustomerGatewayRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateCustomerGatewayRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateCustomerGatewayRequest.Builder |
tags(List<CreateCustomerGatewayRequest.Tags> tags)
The tag value.
|
public CreateCustomerGatewayRequest.Builder asn(String asn)
**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.
public CreateCustomerGatewayRequest.Builder authKey(String authKey)
The key must be 1 to 64 characters in length. It can contain only ASCII characters and cannot contain spaces or question marks (?).
public CreateCustomerGatewayRequest.Builder clientToken(String clientToken)
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. > 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.
public CreateCustomerGatewayRequest.Builder description(String description)
The description must be 1 to 100 characters in length, and cannot start with `http://` or `https://`.
public CreateCustomerGatewayRequest.Builder ipAddress(String ipAddress)
public CreateCustomerGatewayRequest.Builder name(String name)
The name must be 1 to 100 characters in length, and cannot start with `http://` or `https://`.
public CreateCustomerGatewayRequest.Builder ownerAccount(String ownerAccount)
public CreateCustomerGatewayRequest.Builder ownerId(Long ownerId)
public CreateCustomerGatewayRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to query the most recent region list.
public CreateCustomerGatewayRequest.Builder resourceGroupId(String resourceGroupId)
- You can call the [ListResourceGroups](~~158855~~) 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.
public CreateCustomerGatewayRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateCustomerGatewayRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateCustomerGatewayRequest.Builder tags(List<CreateCustomerGatewayRequest.Tags> tags)
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 CreateCustomerGatewayRequest build()
Copyright © 2024. All rights reserved.