Package com.ibm.cloud.is.vpc.v1.model
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 Classes Modifier and Type Class Description static class
VirtualNetworkInterfacePatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
allowIpSpoofing()
Gets the allowIpSpoofing.Map<String,Object>
asPatch()
Construct a JSON merge-patch from the VirtualNetworkInterfacePatch.Boolean
autoDelete()
Gets the autoDelete.Boolean
enableInfrastructureNat()
Gets the enableInfrastructureNat.String
name()
Gets the name.VirtualNetworkInterfacePatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public VirtualNetworkInterfacePatch.Builder newBuilder()
New builder.- Returns:
- a VirtualNetworkInterfacePatch builder
-
allowIpSpoofing
public Boolean 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
public Boolean 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
public Boolean 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
public String 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
-
asPatch
public Map<String,Object> 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
-
-