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.Builder
addAllowedVlans(Long allowedVlans)
Adds a new element to allowedVlans.BareMetalServerNetworkInterfacePatch.Builder
allowedVlans(List<Long> allowedVlans)
Set the allowedVlans.BareMetalServerNetworkInterfacePatch.Builder
allowIpSpoofing(Boolean allowIpSpoofing)
Set the allowIpSpoofing.BareMetalServerNetworkInterfacePatch
build()
Builds a BareMetalServerNetworkInterfacePatch.BareMetalServerNetworkInterfacePatch.Builder
enableInfrastructureNat(Boolean enableInfrastructureNat)
Set the enableInfrastructureNat.BareMetalServerNetworkInterfacePatch.Builder
name(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
-
-