Class BareMetalServerNetworkInterfacePatch
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkInterfacePatch
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BareMetalServerNetworkInterfacePatch
extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerNetworkInterfacePatch.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder. -
Method Summary
Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a BareMetalServerNetworkInterfacePatch builder
-
allowIpSpoofing
Gets the allowIpSpoofing. Indicates whether source IP spoofing is allowed on this bare metal server network interface. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and source IP spoofing is managed on the attached virtual network interface.- Returns:
- the allowIpSpoofing
-
allowedVlans
-
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 bare metal server network interface, allowing the workload to perform any needed NAT operations. - `allow_ip_spoofing` must be `false`. - `interface_type` must not be `hipersocket`. If this bare metal server has network attachments, this network interface is a [read-only representation](https://cloud.ibm.com/docs/vpc?topic=vpc-vni-about#vni-old-api-clients) of its corresponding network attachment and its attached virtual network interface, and infrastructure NAT is managed on the attached virtual network interface.- Returns:
- the enableInfrastructureNat
-
name
Gets the name. The name for this bare metal server network interface. The name must not be used by another network interface on the bare metal server.- Returns:
- the name
-
asPatch
Construct a JSON merge-patch from the BareMetalServerNetworkInterfacePatch. Note that properties of the BareMetalServerNetworkInterfacePatch 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 BareMetalServerNetworkInterfacePatch
-