public class CreateRouterInterfaceRequest
extends com.aliyun.tea.TeaModel
限定符和类型 | 类和说明 |
---|---|
static class |
CreateRouterInterfaceRequest.CreateRouterInterfaceRequestTags |
限定符和类型 | 字段和说明 |
---|---|
String |
accessPointId
The ID of the access point to which the VBR belongs.
|
Boolean |
autoPay
Specifies whether to enable automatic payment.
|
Boolean |
autoRenew
Specifies whether to enable auto-renewal.
|
String |
clientToken
The client token that is used to ensure the idempotence of the request.
|
String |
description
The description of the router interface.
|
Boolean |
fastLinkMode
Specifies whether the VBR that is created in the Fast Link mode is uplinked to the router interface.
|
String |
healthCheckSourceIp
The source IP address that is used to perform health checks.
|
String |
healthCheckTargetIp
The destination IP address that is used to perform health checks.
|
String |
instanceChargeType
The billing method of the router interface.
|
String |
name
The name of the router interface.
|
String |
oppositeAccessPointId
The ID of the access point to which the peer belongs.
|
String |
oppositeInterfaceId
The ID of the peer router interface.
|
String |
oppositeInterfaceOwnerId
The ID of the Alibaba Cloud account to which the peer router interface belongs.
|
String |
oppositeRegionId
The ID of the region in which the acceptor is deployed.
|
String |
oppositeRouterId
The ID of the peer router.
|
String |
oppositeRouterType
The type of router that is associated with the peer router interface.
|
String |
ownerAccount |
Long |
ownerId |
Integer |
period
The subscription duration.
|
String |
pricingCycle
The billing cycle of the subscription.
|
String |
regionId
The ID of the region to which the router interface belongs.
|
String |
resourceGroupId
The ID of the resource group.
|
String |
resourceOwnerAccount |
Long |
resourceOwnerId |
String |
role
The role of the router interface.
|
String |
routerId
The ID of the router that is associated with the router interface.
|
String |
routerType
The type of router that is associated with the router interface.
|
String |
spec
The specification of the router interface and the corresponding bandwidth.
|
List<CreateRouterInterfaceRequest.CreateRouterInterfaceRequestTags> |
tags
The tag to add to the resource.
|
构造器和说明 |
---|
CreateRouterInterfaceRequest() |
@NameInMap(value="AccessPointId") public String accessPointId
The ID of the access point to which the VBR belongs.
You can call the DescribeAccessPoints operation to obtain the IDs of access points.
example:This parameter is required if the VBR is connected to an Express Connect circuit.
ap-cn-hangzhou-yh-ts-A
@NameInMap(value="AutoPay") public Boolean autoPay
Specifies whether to enable automatic payment. Valid values:
example:This parameter is required if InstanceChargeType is set to PrePaid.
false
@NameInMap(value="AutoRenew") public Boolean autoRenew
Specifies whether to enable auto-renewal. Valid values:
false
@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.
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.
123e4567-e89b-12d3-a456-426655440000
@NameInMap(value="Description") public String description
The description of the router interface.
The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http://
or https://
.
abcabc
@NameInMap(value="FastLinkMode") public Boolean fastLinkMode
Specifies whether the VBR that is created in the Fast Link mode is uplinked to the router interface. The Fast Link mode helps automatically connect router interfaces that are created for the VBR and its peer VPC. Valid values:
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.
false
@NameInMap(value="HealthCheckSourceIp") public String healthCheckSourceIp
The source IP address that is used to perform health checks. The source IP address must be an idle IP address of the local virtual private cloud (VPC).
example:You can set this parameter when an Express Connect circuit is used.
192.168.0.6
@NameInMap(value="HealthCheckTargetIp") public String healthCheckTargetIp
The destination IP address that is used to perform health checks.
example:This parameter is required if you specify HealthCheckSourceIp
192.168.0.8
@NameInMap(value="InstanceChargeType") public String instanceChargeType
The billing method of the router interface. Valid values:
PrePaid
@NameInMap(value="Name") public String name
The name of the router interface.
The name must be 2 to 128 characters in length, and can contain letters, digits, periods (.), underscores (_), and hyphens (-).
example:abc
@NameInMap(value="OppositeAccessPointId") public String oppositeAccessPointId
The ID of the access point to which the peer belongs.
example: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.
ap-cn-shanghai-nt-aligroup-C
@NameInMap(value="OppositeInterfaceId") public String oppositeInterfaceId
The ID of the peer router interface.
example:ri-2zeo3xzyf38r4urzd****
@NameInMap(value="OppositeInterfaceOwnerId") public String oppositeInterfaceOwnerId
The ID of the Alibaba Cloud account to which the peer router interface belongs.
example:253460731706911258
@NameInMap(value="OppositeRegionId") public String oppositeRegionId
The ID of the region in which the acceptor is deployed.
This parameter is required.
example:cn-shanghai
@NameInMap(value="OppositeRouterId") public String oppositeRouterId
The ID of the peer router.
example:vrt-bp1lhl0taikrteen8****
@NameInMap(value="OppositeRouterType") public String oppositeRouterType
The type of router that is associated with the peer router interface. Valid values:
VRouter
@NameInMap(value="OwnerAccount") public String ownerAccount
@NameInMap(value="OwnerId") public Long ownerId
@NameInMap(value="Period") public Integer period
The subscription duration. Valid values:
example:This parameter is required if InstanceChargeType is set to PrePaid.
3
@NameInMap(value="PricingCycle") public String pricingCycle
The billing cycle of the subscription. Valid values:
example:This parameter is required if InstanceChargeType is set to PrePaid.
Month
@NameInMap(value="RegionId") public String regionId
The ID of the region to which the router interface belongs.
You can call the DescribeRegions operation to obtain the region ID.
This parameter is required.
example:cn-hangzhou
@NameInMap(value="ResourceGroupId") public String resourceGroupId
The ID of the resource group.
For more information about resource group, see What is Resource Management?
example:rg-acfmxazb4ph6aiy****
@NameInMap(value="ResourceOwnerAccount") public String resourceOwnerAccount
@NameInMap(value="ResourceOwnerId") public Long resourceOwnerId
@NameInMap(value="Role") public String role
The role of the router interface. Valid values:
This parameter is required.
example:InitiatingSide
@NameInMap(value="RouterId") public String routerId
The ID of the router that is associated with the router interface.
This parameter is required.
example:vbr-m5ebm6g9ptc9mly1c****
@NameInMap(value="RouterType") public String routerType
The type of router that is associated with the router interface. Valid values:
This parameter is required.
example:VRouter
@NameInMap(value="Spec") public String spec
The specification of the router interface and the corresponding bandwidth. Valid values:
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.
This parameter is required.
example:Mini.2
@NameInMap(value="Tags") public List<CreateRouterInterfaceRequest.CreateRouterInterfaceRequestTags> tags
The tag to add to the resource.
public static CreateRouterInterfaceRequest build(Map<String,?> map) throws Exception
Exception
public CreateRouterInterfaceRequest setAccessPointId(String accessPointId)
public String getAccessPointId()
public CreateRouterInterfaceRequest setAutoPay(Boolean autoPay)
public Boolean getAutoPay()
public CreateRouterInterfaceRequest setAutoRenew(Boolean autoRenew)
public Boolean getAutoRenew()
public CreateRouterInterfaceRequest setClientToken(String clientToken)
public String getClientToken()
public CreateRouterInterfaceRequest setDescription(String description)
public String getDescription()
public CreateRouterInterfaceRequest setFastLinkMode(Boolean fastLinkMode)
public Boolean getFastLinkMode()
public CreateRouterInterfaceRequest setHealthCheckSourceIp(String healthCheckSourceIp)
public String getHealthCheckSourceIp()
public CreateRouterInterfaceRequest setHealthCheckTargetIp(String healthCheckTargetIp)
public String getHealthCheckTargetIp()
public CreateRouterInterfaceRequest setInstanceChargeType(String instanceChargeType)
public String getInstanceChargeType()
public CreateRouterInterfaceRequest setName(String name)
public String getName()
public CreateRouterInterfaceRequest setOppositeAccessPointId(String oppositeAccessPointId)
public String getOppositeAccessPointId()
public CreateRouterInterfaceRequest setOppositeInterfaceId(String oppositeInterfaceId)
public String getOppositeInterfaceId()
public CreateRouterInterfaceRequest setOppositeInterfaceOwnerId(String oppositeInterfaceOwnerId)
public String getOppositeInterfaceOwnerId()
public CreateRouterInterfaceRequest setOppositeRegionId(String oppositeRegionId)
public String getOppositeRegionId()
public CreateRouterInterfaceRequest setOppositeRouterId(String oppositeRouterId)
public String getOppositeRouterId()
public CreateRouterInterfaceRequest setOppositeRouterType(String oppositeRouterType)
public String getOppositeRouterType()
public CreateRouterInterfaceRequest setOwnerAccount(String ownerAccount)
public String getOwnerAccount()
public CreateRouterInterfaceRequest setOwnerId(Long ownerId)
public Long getOwnerId()
public CreateRouterInterfaceRequest setPeriod(Integer period)
public Integer getPeriod()
public CreateRouterInterfaceRequest setPricingCycle(String pricingCycle)
public String getPricingCycle()
public CreateRouterInterfaceRequest setRegionId(String regionId)
public String getRegionId()
public CreateRouterInterfaceRequest setResourceGroupId(String resourceGroupId)
public String getResourceGroupId()
public CreateRouterInterfaceRequest setResourceOwnerAccount(String resourceOwnerAccount)
public String getResourceOwnerAccount()
public CreateRouterInterfaceRequest setResourceOwnerId(Long resourceOwnerId)
public Long getResourceOwnerId()
public CreateRouterInterfaceRequest setRole(String role)
public String getRole()
public CreateRouterInterfaceRequest setRouterId(String routerId)
public String getRouterId()
public CreateRouterInterfaceRequest setRouterType(String routerType)
public String getRouterType()
public CreateRouterInterfaceRequest setSpec(String spec)
public String getSpec()
public CreateRouterInterfaceRequest setTags(List<CreateRouterInterfaceRequest.CreateRouterInterfaceRequestTags> tags)
public List<CreateRouterInterfaceRequest.CreateRouterInterfaceRequestTags> getTags()
Copyright © 2024. All rights reserved.