Class BareMetalServerNetworkInterfacePatch.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkInterfacePatch.Builder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowedVlans
(Long allowedVlans) Adds a new element to allowedVlans.allowedVlans
(List<Long> allowedVlans) Set the allowedVlans.allowIpSpoofing
(Boolean allowIpSpoofing) Set the allowIpSpoofing.build()
Builds a BareMetalServerNetworkInterfacePatch.enableInfrastructureNat
(Boolean enableInfrastructureNat) Set the enableInfrastructureNat.Set the name.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a BareMetalServerNetworkInterfacePatch.- Returns:
- the new BareMetalServerNetworkInterfacePatch instance
-
addAllowedVlans
Adds a new element to allowedVlans.- Parameters:
allowedVlans
- the new element to be added- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
allowIpSpoofing
Set the allowIpSpoofing.- Parameters:
allowIpSpoofing
- the allowIpSpoofing- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-
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
Set the name.- Parameters:
name
- the name- Returns:
- the BareMetalServerNetworkInterfacePatch builder
-