Package com.ibm.cloud.is.vpc.v1.model
Class VirtualNetworkInterface
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.VirtualNetworkInterface
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VirtualNetworkInterface extends com.ibm.cloud.sdk.core.service.model.GenericModelVirtualNetworkInterface.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceVirtualNetworkInterface.LifecycleStateThe lifecycle state of the virtual network interface.static interfaceVirtualNetworkInterface.ResourceTypeThe resource type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DategetCreatedAt()Gets the createdAt.StringgetCrn()Gets the crn.StringgetHref()Gets the href.StringgetId()Gets the id.List<ReservedIPReference>getIps()Gets the ips.StringgetLifecycleState()Gets the lifecycleState.StringgetMacAddress()Gets the macAddress.StringgetName()Gets the name.ReservedIPReferencegetPrimaryIp()Gets the primaryIp.ResourceGroupReferencegetResourceGroup()Gets the resourceGroup.StringgetResourceType()Gets the resourceType.List<SecurityGroupReference>getSecurityGroups()Gets the securityGroups.SubnetReferencegetSubnet()Gets the subnet.VirtualNetworkInterfaceTargetgetTarget()Gets the target.VPCReferencegetVpc()Gets the vpc.ZoneReferencegetZone()Gets the zone.BooleanisAllowIpSpoofing()Gets the allowIpSpoofing.BooleanisAutoDelete()Gets the autoDelete.BooleanisEnableInfrastructureNat()Gets the enableInfrastructureNat.
-
-
-
Method Detail
-
isAllowIpSpoofing
public Boolean isAllowIpSpoofing()
Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this interface. If `false`, source IP spoofing is prevented on this interface. If `true`, source IP spoofing is allowed on this interface.- Returns:
- the allowIpSpoofing
-
isAutoDelete
public Boolean isAutoDelete()
Gets the autoDelete. Indicates whether this virtual network interface will be automatically deleted when `target` is deleted.- Returns:
- the autoDelete
-
getCreatedAt
public Date getCreatedAt()
Gets the createdAt. The date and time that the virtual network interface was created.- Returns:
- the createdAt
-
getCrn
public String getCrn()
Gets the crn. The CRN for this virtual network interface.- Returns:
- the crn
-
isEnableInfrastructureNat
public Boolean isEnableInfrastructureNat()
Gets the enableInfrastructureNat. If `true`: - The VPC infrastructure performs any needed NAT operations. - `floating_ips` must not have more than one floating IP. If `false`: - Packets are passed unchanged to/from the virtual network interface, allowing the workload to perform any needed NAT operations. - `allow_ip_spoofing` must be `false`. - Can only be attached to a `target` with a `resource_type` of `bare_metal_server_network_attachment`.- Returns:
- the enableInfrastructureNat
-
getHref
public String getHref()
Gets the href. The URL for this virtual network interface.- Returns:
- the href
-
getId
public String getId()
Gets the id. The unique identifier for this virtual network interface.- Returns:
- the id
-
getIps
public List<ReservedIPReference> getIps()
Gets the ips. The reserved IPs bound to this virtual network interface. May be empty when `lifecycle_state` is `pending`.- Returns:
- the ips
-
getLifecycleState
public String getLifecycleState()
Gets the lifecycleState. The lifecycle state of the virtual network interface.- Returns:
- the lifecycleState
-
getMacAddress
public String getMacAddress()
Gets the macAddress. The MAC address of the virtual network interface. May be absent if `lifecycle_state` is `pending`.- Returns:
- the macAddress
-
getName
public String getName()
Gets the name. The name for this virtual network interface. The name is unique across all virtual network interfaces in the VPC.- Returns:
- the name
-
getPrimaryIp
public ReservedIPReference getPrimaryIp()
Gets the primaryIp. The reserved IP for this virtual network interface.- Returns:
- the primaryIp
-
getResourceGroup
public ResourceGroupReference getResourceGroup()
Gets the resourceGroup. The resource group for this virtual network interface.- Returns:
- the resourceGroup
-
getResourceType
public String getResourceType()
Gets the resourceType. The resource type.- Returns:
- the resourceType
-
getSecurityGroups
public List<SecurityGroupReference> getSecurityGroups()
Gets the securityGroups. The security groups for this virtual network interface.- Returns:
- the securityGroups
-
getSubnet
public SubnetReference getSubnet()
Gets the subnet. The associated subnet.- Returns:
- the subnet
-
getTarget
public VirtualNetworkInterfaceTarget getTarget()
Gets the target. The target of this virtual network interface. If absent, this virtual network interface is not attached to a target.- Returns:
- the target
-
getVpc
public VPCReference getVpc()
Gets the vpc. The VPC this virtual network interface resides in.- Returns:
- the vpc
-
getZone
public ZoneReference getZone()
Gets the zone. The zone this virtual network interface resides in.- Returns:
- the zone
-
-