Skip to content

EIPSegmentProps

Properties for defining a EIPSegment.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-vpc-eipsegment

Initializer

import com.aliyun.ros.cdk.vpc.EIPSegmentProps;
EIPSegmentProps.builder()
    .eipMask(java.lang.Number)
    .eipMask(IResolvable)
//  .bandwidth(java.lang.Number)
//  .bandwidth(IResolvable)
//  .internetChargeType(java.lang.String)
//  .internetChargeType(IResolvable)
//  .isp(java.lang.String)
//  .isp(IResolvable)
//  .netmode(java.lang.String)
//  .netmode(IResolvable)
//  .resourceGroupId(java.lang.String)
//  .resourceGroupId(IResolvable)
//  .zone(java.lang.String)
//  .zone(IResolvable)
    .build();

Properties

Name Type Description
eipMask java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property eipMask: The mask of the contiguous EIP group.
bandwidth java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property bandwidth: The maximum bandwidth of the contiguous EIPs.
internetChargeType java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property internetChargeType: The metering method of the contiguous EIPs.
isp java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property isp: The line type.
netmode java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property netmode: The network type.
resourceGroupId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property resourceGroupId: The ID of the resource group to which the EIPs belong.
zone java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property zone: The zone of the contiguous EIP group.

eipMaskRequired

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

Property eipMask: The mask of the contiguous EIP group.

Valid values: 28: 16 contiguous EIPs are allocated for one call. 27: 32 contiguous EIPs are allocated for one call. 26: 64 contiguous EIPs are allocated for one call. 25: 128 contiguous EIPs are allocated for one call. 24: 256 contiguous EIPs are allocated for one call. Note The actual number of assigned EIPs may be less than the expected number because one, three, or four EIPs may be reserved.


bandwidthOptional

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

Property bandwidth: The maximum bandwidth of the contiguous EIPs.

Unit: Mbit/s. Default value: 5.


internetChargeTypeOptional

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

Property internetChargeType: The metering method of the contiguous EIPs.

Valid values: PayByBandwidth: Fees are charged based on bandwidth usage. This is the default value. PayByTraffic: Fees are charged based on data transfer. Note If the Netmode parameter is set to hybrid, InternetChargeType is set to PayByBandwidth.


ispOptional

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

Property isp: The line type.

Valid values:

  • BGP (default): BGP (multi-line). All regions support BGP (multi-line) EIPs.
  • BGP_PRO: BGP (multi-line)_Premium. Currently supported only in China (Hong Kong), Singapore, Japan (Tokyo), Malaysia (Kuala Lumpur), Philippines (Manila), India (Jakarta), and Thailand (Bangkok). If you are a single-bandwidth whitelist user, you can also choose:
  • ChinaTelecom: China Telecom
  • ChinaUnicom: China Unicom
  • ChinaMobile: China Mobile
  • ChinaTelecom_L2: China Telecom L2
  • ChinaUnicom_L2: China Unicom L2
  • ChinaMobile_L2: China Mobile L2

If you are a Hangzhou Finance Cloud user, this field is required with value: BGP_FinanceCloud.


netmodeOptional

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

Property netmode: The network type.

Valid values: public: the Internet. This is the default value. After contiguous EIPs are associated with cloud resources, the cloud resources can access the Internet by using the EIPs. hybrid: the hybrid cloud. After contiguous EIPs are associated with cloud resources, the cloud resources can access the hybrid cloud by using the EIPs. Note This network type is available only to users who are added to the whitelist. To use this network type, contact your customer manager.


resourceGroupIdOptional

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

Property resourceGroupId: The ID of the resource group to which the EIPs belong.


zoneOptional

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

Property zone: The zone of the contiguous EIP group.