public static final class CreateRouterInterfaceRequest.Builder extends Object
限定符和类型 | 方法和说明 |
---|---|
CreateRouterInterfaceRequest.Builder |
accessPointId(String accessPointId)
The ID of the access point to which the VBR belongs.
|
CreateRouterInterfaceRequest.Builder |
autoPay(Boolean autoPay)
Specifies whether to enable automatic payment.
|
CreateRouterInterfaceRequest.Builder |
autoRenew(Boolean autoRenew)
Specifies whether to enable auto-renewal.
|
CreateRouterInterfaceRequest |
build() |
CreateRouterInterfaceRequest.Builder |
clientToken(String clientToken)
The client token that is used to ensure the idempotence of the request.
|
CreateRouterInterfaceRequest.Builder |
description(String description)
The description of the router interface.
|
CreateRouterInterfaceRequest.Builder |
fastLinkMode(Boolean fastLinkMode)
Specifies whether the VBR that is created in the Fast Link mode is uplinked to the router interface.
|
CreateRouterInterfaceRequest.Builder |
healthCheckSourceIp(String healthCheckSourceIp)
The source IP address that is used to perform health checks.
|
CreateRouterInterfaceRequest.Builder |
healthCheckTargetIp(String healthCheckTargetIp)
The destination IP address that is used to perform health checks.
|
CreateRouterInterfaceRequest.Builder |
instanceChargeType(String instanceChargeType)
The billing method of the router interface.
|
CreateRouterInterfaceRequest.Builder |
name(String name)
The name of the router interface.
|
CreateRouterInterfaceRequest.Builder |
oppositeAccessPointId(String oppositeAccessPointId)
The ID of the access point to which the peer belongs.
|
CreateRouterInterfaceRequest.Builder |
oppositeInterfaceId(String oppositeInterfaceId)
The ID of the peer router interface.
|
CreateRouterInterfaceRequest.Builder |
oppositeInterfaceOwnerId(String oppositeInterfaceOwnerId)
The ID of the Alibaba Cloud account to which the peer router interface belongs.
|
CreateRouterInterfaceRequest.Builder |
oppositeRegionId(String oppositeRegionId)
The ID of the region in which the acceptor is deployed.
|
CreateRouterInterfaceRequest.Builder |
oppositeRouterId(String oppositeRouterId)
The ID of the peer router.
|
CreateRouterInterfaceRequest.Builder |
oppositeRouterType(String oppositeRouterType)
The type of router that is associated with the peer router interface.
|
CreateRouterInterfaceRequest.Builder |
ownerAccount(String ownerAccount)
OwnerAccount.
|
CreateRouterInterfaceRequest.Builder |
ownerId(Long ownerId)
OwnerId.
|
CreateRouterInterfaceRequest.Builder |
period(Integer period)
The subscription duration.
|
CreateRouterInterfaceRequest.Builder |
pricingCycle(String pricingCycle)
The billing cycle of the subscription.
|
CreateRouterInterfaceRequest.Builder |
regionId(String regionId)
The ID of the region to which the router interface belongs.
|
CreateRouterInterfaceRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
CreateRouterInterfaceRequest.Builder |
resourceOwnerAccount(String resourceOwnerAccount)
ResourceOwnerAccount.
|
CreateRouterInterfaceRequest.Builder |
resourceOwnerId(Long resourceOwnerId)
ResourceOwnerId.
|
CreateRouterInterfaceRequest.Builder |
role(String role)
The role of the router interface.
|
CreateRouterInterfaceRequest.Builder |
routerId(String routerId)
The ID of the router that is associated with the router interface.
|
CreateRouterInterfaceRequest.Builder |
routerType(String routerType)
The type of router that is associated with the router interface.
|
CreateRouterInterfaceRequest.Builder |
spec(String spec)
The specification of the router interface and the corresponding bandwidth.
|
CreateRouterInterfaceRequest.Builder |
tags(List<CreateRouterInterfaceRequest.Tags> tags)
The tag to add to the resource.
|
public CreateRouterInterfaceRequest.Builder accessPointId(String accessPointId)
You can call the [DescribeAccessPoints](~~36062~~) operation to obtain the IDs of access points. > This parameter is required if the VBR is connected to an Express Connect circuit.
public CreateRouterInterfaceRequest.Builder autoPay(Boolean autoPay)
* **false** (default): The automatic payment is disabled. If you select this option, you must go to the Order Center to complete the payment after an order is generated. * **true**: The automatic payment is enabled. Payments are automatically complete after an order is generated. > This parameter is required if **InstanceChargeType** is set to **PrePaid**.
public CreateRouterInterfaceRequest.Builder autoRenew(Boolean autoRenew)
* **false** (default) * **true**
public CreateRouterInterfaceRequest.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. > 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 CreateRouterInterfaceRequest.Builder description(String description)
The description must be 2 to 256 characters in length. It must start with a letter but cannot start with `http://` or `https://`.
public CreateRouterInterfaceRequest.Builder fastLinkMode(Boolean fastLinkMode)
* **true** * **false** > * This parameter takes effect only if **RouterType** is set to **VBR** and **OppositeRouterType** is set to **VRouter**. * If **FastLinkMode** is set to **true**, **Role** must be set to **InitiatingSide**. In this case, **AccessPointId**, **OppositeRouterType**, **OpppsiteRouterId**, and **OppositeInterfaceOwnerId** are required.
public CreateRouterInterfaceRequest.Builder healthCheckSourceIp(String healthCheckSourceIp)
> You can set this parameter when an Express Connect circuit is used.
public CreateRouterInterfaceRequest.Builder healthCheckTargetIp(String healthCheckTargetIp)
> This parameter is required if you specify **HealthCheckSourceIp**
public CreateRouterInterfaceRequest.Builder instanceChargeType(String instanceChargeType)
* **PrePaid**: subscription * **PostPaid**: pay-as-you-go
public CreateRouterInterfaceRequest.Builder name(String name)
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (\_), and hyphens (-).
public CreateRouterInterfaceRequest.Builder oppositeAccessPointId(String oppositeAccessPointId)
> This parameter is required if the peer router interface is associated with a VBR. The specified value cannot be changed after the router interface is created.
public CreateRouterInterfaceRequest.Builder oppositeInterfaceId(String oppositeInterfaceId)
public CreateRouterInterfaceRequest.Builder oppositeInterfaceOwnerId(String oppositeInterfaceOwnerId)
public CreateRouterInterfaceRequest.Builder oppositeRegionId(String oppositeRegionId)
public CreateRouterInterfaceRequest.Builder oppositeRouterId(String oppositeRouterId)
public CreateRouterInterfaceRequest.Builder oppositeRouterType(String oppositeRouterType)
* **VRouter** * **VBR**
public CreateRouterInterfaceRequest.Builder ownerAccount(String ownerAccount)
public CreateRouterInterfaceRequest.Builder ownerId(Long ownerId)
public CreateRouterInterfaceRequest.Builder period(Integer period)
* Valid values when PricingCycle is set to Month: **1 to 9**. * Valid values when PricingCycle is set to Year: **1 to 3**. > This parameter is required if **InstanceChargeType** is set to **PrePaid**.
public CreateRouterInterfaceRequest.Builder pricingCycle(String pricingCycle)
* **Month** (default) * **Year** > This parameter is required if **InstanceChargeType** is set to **PrePaid**.
public CreateRouterInterfaceRequest.Builder regionId(String regionId)
You can call the [DescribeRegions](~~36063~~) operation to obtain the region ID.
public CreateRouterInterfaceRequest.Builder resourceGroupId(String resourceGroupId)
For more information about resource group, see [What is Resource Management?](~~94475~~)
public CreateRouterInterfaceRequest.Builder resourceOwnerAccount(String resourceOwnerAccount)
public CreateRouterInterfaceRequest.Builder resourceOwnerId(Long resourceOwnerId)
public CreateRouterInterfaceRequest.Builder role(String role)
* **InitiatingSide**: requester * **AcceptingSide**: acceptor
public CreateRouterInterfaceRequest.Builder routerId(String routerId)
public CreateRouterInterfaceRequest.Builder routerType(String routerType)
* **VRouter** * **VBR**
public CreateRouterInterfaceRequest.Builder spec(String spec)
* **Mini.2**: 2 Mbit/s * **Mini.5**: 5 Mbit/s * **Small.1**: 10 Mbit/s * **Small.2**: 20 Mbit/s * **Small.5**: 50 Mbit/s * **Middle.1**: 100 Mbit/s * **Middle.2**: 200 Mbit/s * **Middle.5**: 500 Mbit/s * **Large.1**: 1,000 Mbit/s * **Large.2**: 2,000 Mbit/s * **Large.5**: 5,000 Mbit/s * **Xlarge.1**: 10,000 Mbit/s > If **Role** is set to **AcceptingSide**, set **Spec** to **Negative**. This indicates that you do not need to specify the specification when you create an acceptor router interface.
public CreateRouterInterfaceRequest.Builder tags(List<CreateRouterInterfaceRequest.Tags> tags)
public CreateRouterInterfaceRequest build()
Copyright © 2024. All rights reserved.