Skip to content

VSwitchProps

Properties for defining a VSwitch.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ens-vswitch

Initializer

import com.aliyun.ros.cdk.ens.VSwitchProps;
VSwitchProps.builder()
    .cidrBlock(java.lang.String)
    .cidrBlock(IResolvable)
    .ensRegionId(java.lang.String)
    .ensRegionId(IResolvable)
    .networkId(java.lang.String)
    .networkId(IResolvable)
//  .description(java.lang.String)
//  .description(IResolvable)
//  .vSwitchName(java.lang.String)
//  .vSwitchName(IResolvable)
    .build();

Properties

Name Type Description
cidrBlock java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property cidrBlock: The CIDR block of the vSwitch.
ensRegionId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property ensRegionId: The ID of the edge node.
networkId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property networkId: The ID of the network to which the vSwitch that you want to create belongs.
description java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property description: The description of the vSwitch.
vSwitchName java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vSwitchName: The name of the vSwitch.

cidrBlockRequired

public java.lang.Object getCidrBlock();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property cidrBlock: The CIDR block of the vSwitch.

Take note of the following limits: The subnet mask must be 16 to 29 bits in length. The CIDR block of the vSwitch must fall within the CIDR block of the VPC to which the vSwitch belongs. The CIDR block of the vSwitch cannot be the same as the destination CIDR block in a route entry of the VPC. However, it can be a subset of the destination CIDR block.


ensRegionIdRequired

public java.lang.Object getEnsRegionId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property ensRegionId: The ID of the edge node.


networkIdRequired

public java.lang.Object getNetworkId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property networkId: The ID of the network to which the vSwitch that you want to create belongs.


descriptionOptional

public java.lang.Object getDescription();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property description: The description of the vSwitch.

The description must be 2 to 256 characters in length. It must start with a letter but cannot start with http:// or https://.


vSwitchNameOptional

public java.lang.Object getVSwitchName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property vSwitchName: The name of the vSwitch.

The name must meet the following requirements: The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-). Default value: null.