Class VirtualNetworkInterfacePatch
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.VirtualNetworkInterfacePatch
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class VirtualNetworkInterfacePatch
extends com.ibm.cloud.sdk.core.service.model.GenericModel
VirtualNetworkInterfacePatch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder.static interface
The protocol state filtering mode to use for this virtual network interface. -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a VirtualNetworkInterfacePatch builder
-
allowIpSpoofing
Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this interface. Must be `false` if `target` is a file share mount target.- Returns:
- the allowIpSpoofing
-
autoDelete
Gets the autoDelete. Indicates whether this virtual network interface will be automatically deleted when `target` is deleted. Must be `false` if the virtual network interface is unbound.- Returns:
- the autoDelete
-
enableInfrastructureNat
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
-
name
Gets the name. The name for this virtual network interface. The name must not be used by another virtual network interface in the region. Names beginning with `ibm-` are reserved for provider-owned resources, and are not allowed.- Returns:
- the name
-
protocolStateFilteringMode
Gets the protocolStateFilteringMode. The protocol state filtering mode to use for this virtual network interface. If `auto`, protocol state packet filtering is enabled or disabled based on the virtual network interface's `target` resource type: - `bare_metal_server_network_attachment`: disabled - `instance_network_attachment`: enabled - `share_mount_target`: enabled Must not be `disabled` if the virtual network interface's `target` resource type is `share_mount_target`. Protocol state filtering monitors each network connection flowing over this virtual network interface, and drops any packets that are invalid based on the current connection state and protocol. See [Protocol state filtering mode](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#protocol-state-filtering) for more information.- Returns:
- the protocolStateFilteringMode
-
asPatch
Construct a JSON merge-patch from the VirtualNetworkInterfacePatch. Note that properties of the VirtualNetworkInterfacePatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the VirtualNetworkInterfacePatch
-