Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerNetworkInterfacePatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkInterfacePatch.Builder
-
- Enclosing class:
- BareMetalServerNetworkInterfacePatch
public static class BareMetalServerNetworkInterfacePatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BareMetalServerNetworkInterfacePatch.BuilderaddAllowedVlans(Long allowedVlans)Adds a new element to allowedVlans.BareMetalServerNetworkInterfacePatch.BuilderallowedVlans(List<Long> allowedVlans)Set the allowedVlans.BareMetalServerNetworkInterfacePatch.BuilderallowIpSpoofing(Boolean allowIpSpoofing)Set the allowIpSpoofing.BareMetalServerNetworkInterfacePatchbuild()Builds a BareMetalServerNetworkInterfacePatch.BareMetalServerNetworkInterfacePatch.BuilderenableInfrastructureNat(Boolean enableInfrastructureNat)Set the enableInfrastructureNat.BareMetalServerNetworkInterfacePatch.Buildername(String name)Set the name.
-
-
-
Method Detail
-
build
public BareMetalServerNetworkInterfacePatch build()
Builds a BareMetalServerNetworkInterfacePatch.- Returns:
- the new BareMetalServerNetworkInterfacePatch instance
-
addAllowedVlans
public BareMetalServerNetworkInterfacePatch.Builder addAllowedVlans(Long allowedVlans)
Adds a new element to allowedVlans.- Parameters:
allowedVlans- the new element to be added- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
allowIpSpoofing
public BareMetalServerNetworkInterfacePatch.Builder allowIpSpoofing(Boolean allowIpSpoofing)
Set the allowIpSpoofing.- Parameters:
allowIpSpoofing- the allowIpSpoofing- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
allowedVlans
public BareMetalServerNetworkInterfacePatch.Builder allowedVlans(List<Long> allowedVlans)
Set the allowedVlans. Existing allowedVlans will be replaced.- Parameters:
allowedVlans- the allowedVlans- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
enableInfrastructureNat
public BareMetalServerNetworkInterfacePatch.Builder enableInfrastructureNat(Boolean enableInfrastructureNat)
Set the enableInfrastructureNat.- Parameters:
enableInfrastructureNat- the enableInfrastructureNat- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
name
public BareMetalServerNetworkInterfacePatch.Builder name(String name)
Set the name.- Parameters:
name- the name- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
-