Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerNetworkAttachmentPatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkAttachmentPatch.Builder
-
- Enclosing class:
- BareMetalServerNetworkAttachmentPatch
public static class BareMetalServerNetworkAttachmentPatch.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 BareMetalServerNetworkAttachmentPatch.Builder
addAllowedVlans(Long allowedVlans)
Adds a new element to allowedVlans.BareMetalServerNetworkAttachmentPatch.Builder
allowedVlans(List<Long> allowedVlans)
Set the allowedVlans.BareMetalServerNetworkAttachmentPatch
build()
Builds a BareMetalServerNetworkAttachmentPatch.BareMetalServerNetworkAttachmentPatch.Builder
name(String name)
Set the name.
-
-
-
Method Detail
-
build
public BareMetalServerNetworkAttachmentPatch build()
Builds a BareMetalServerNetworkAttachmentPatch.- Returns:
- the new BareMetalServerNetworkAttachmentPatch instance
-
addAllowedVlans
public BareMetalServerNetworkAttachmentPatch.Builder addAllowedVlans(Long allowedVlans)
Adds a new element to allowedVlans.- Parameters:
allowedVlans
- the new element to be added- Returns:
- the BareMetalServerNetworkAttachmentPatch builder
-
allowedVlans
public BareMetalServerNetworkAttachmentPatch.Builder allowedVlans(List<Long> allowedVlans)
Set the allowedVlans. Existing allowedVlans will be replaced.- Parameters:
allowedVlans
- the allowedVlans- Returns:
- the BareMetalServerNetworkAttachmentPatch builder
-
name
public BareMetalServerNetworkAttachmentPatch.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the BareMetalServerNetworkAttachmentPatch builder
-
-