NetworkInterfacesProps
Properties for defining a NetworkInterfaces.
See https://www.alibabacloud.com/help/ros/developer-reference/datasource-ecs-networkinterfaces
Initializer
import com.aliyun.ros.cdk.ecs.datasource.NetworkInterfacesProps;
NetworkInterfacesProps.builder()
// .instanceId(java.lang.String)
// .instanceId(IResolvable)
// .ipv6Addresses(IResolvable)
// .ipv6Addresses(java.util.List<java.lang.String)
// .ipv6Addresses(IResolvable>)
// .networkInterfaceIds(IResolvable)
// .networkInterfaceIds(java.util.List<java.lang.String)
// .networkInterfaceIds(IResolvable>)
// .networkInterfaceName(java.lang.String)
// .networkInterfaceName(IResolvable)
// .primaryIpAddress(java.lang.String)
// .primaryIpAddress(IResolvable)
// .privateIpAddresses(IResolvable)
// .privateIpAddresses(java.util.List<java.lang.String)
// .privateIpAddresses(IResolvable>)
// .refreshOptions(java.lang.String)
// .refreshOptions(IResolvable)
// .resourceGroupId(java.lang.String)
// .resourceGroupId(IResolvable)
// .securityGroupId(java.lang.String)
// .securityGroupId(IResolvable)
// .serviceManaged(java.lang.Boolean)
// .serviceManaged(IResolvable)
// .status(java.lang.String)
// .status(IResolvable)
// .tags(java.util.List<TagsProperty>)
// .type(java.lang.String)
// .type(IResolvable)
// .vpcId(java.lang.String)
// .vpcId(IResolvable)
// .vSwitchId(java.lang.String)
// .vSwitchId(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
instanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property instanceId: The ID of the instance to which the ENI is bound. |
ipv6Addresses |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property ipv6Addresses: IPv6 address N of the ENI. |
networkInterfaceIds |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property networkInterfaceIds: The ID of ENI N. |
networkInterfaceName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property networkInterfaceName: The name of the ENI. |
primaryIpAddress |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property primaryIpAddress: The primary private IPv4 address of the ENI. |
privateIpAddresses |
com.aliyun.ros.cdk.core.IResolvable OR java.util.List |
Property privateIpAddresses: Secondary private IPv4 address N of the ENI. |
refreshOptions |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated. |
resourceGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property resourceGroupId: The ID of the resource group to which the eni belongs. |
securityGroupId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property securityGroupId: The ID of the security group to which the secondary ENI belongs. |
serviceManaged |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property serviceManaged: Specifies whether the user is an Alibaba Cloud service or a distributor. |
status |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property status: The state of the ENI. |
tags |
java.util.List |
Property tags: Tags of eni. |
type |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property type: The type of the ENI. |
vpcId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vpcId: The ID of the virtual private cloud (VPC) to which the ENI belongs. |
vSwitchId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property vSwitchId: The ID of the vSwitch to which the ENI is connected. |
instanceIdOptional
public java.lang.Object getInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property instanceId: The ID of the instance to which the ENI is bound.
ipv6AddressesOptional
public java.lang.Object getIpv6Addresses();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property ipv6Addresses: IPv6 address N of the ENI.
You can specify multiple IPv6 addresses. Valid values of N: 1 to 100.
networkInterfaceIdsOptional
public java.lang.Object getNetworkInterfaceIds();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property networkInterfaceIds: The ID of ENI N.
Valid values of N: 1 to 100.
networkInterfaceNameOptional
public java.lang.Object getNetworkInterfaceName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property networkInterfaceName: The name of the ENI.
primaryIpAddressOptional
public java.lang.Object getPrimaryIpAddress();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property primaryIpAddress: The primary private IPv4 address of the ENI.
privateIpAddressesOptional
public java.lang.Object getPrivateIpAddresses();
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.List
Property privateIpAddresses: Secondary private IPv4 address N of the ENI.
Valid values of N: 1 to 100.
refreshOptionsOptional
public java.lang.Object getRefreshOptions();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property refreshOptions: The refresh strategy for the datasource resource when the stack is updated.
Valid values:
- Never: Never refresh the datasource resource when the stack is updated.
- Always: Always refresh the datasource resource when the stack is updated. Default is Never.
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 eni belongs.
If this parameter is specified to query resources,up to 1,000 resources that belong to the specified resource group can be displayed in the response.
securityGroupIdOptional
public java.lang.Object getSecurityGroupId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property securityGroupId: The ID of the security group to which the secondary ENI belongs.
To query the details of secondary ENIs based on the ID of a security group, specify this parameter. To query the details of primary ENIs based on the ID of a security group, call the DescribeInstances operation and specify the SecurityGroupId parameter.
serviceManagedOptional
public java.lang.Object getServiceManaged();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property serviceManaged: Specifies whether the user is an Alibaba Cloud service or a distributor.
statusOptional
public java.lang.Object getStatus();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property status: The state of the ENI.
Valid values: Creating: The ENI is being created. Available: The ENI is not bound to an instance. Attaching: The ENI is being bound to an instance. InUse: The ENI is bound to an instance. Detaching: The ENI is being unbound from an instance. Deleting: The ENI is being deleted. CreateFailed: The ENI cannot be created. This parameter is empty by default, which indicates that ENIs in all states are queried.
tagsOptional
public java.util.List<TagsProperty> getTags();
- Type: java.util.List
Property tags: Tags of eni.
typeOptional
public java.lang.Object getType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property type: The type of the ENI.
Valid values: Primary Secondary This parameter is empty by default, which indicates that both primary and secondary ENIs are queried.
vpcIdOptional
public java.lang.Object getVpcId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vpcId: The ID of the virtual private cloud (VPC) to which the ENI belongs.
vSwitchIdOptional
public java.lang.Object getVSwitchId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property vSwitchId: The ID of the vSwitch to which the ENI is connected.