Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder
-
- Enclosing class:
- BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype
public static class BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Instantiates a new builder with required properties.Builder(BareMetalServerPrimaryNetworkAttachmentPrototype bareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPciPrototype)
Instantiates a new Builder from an existing BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype instance.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(BareMetalServerPrimaryNetworkAttachmentPrototype bareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPciPrototype)
Instantiates a new Builder from an existing BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype instance.- Parameters:
bareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPciPrototype
- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Instantiates a new builder with required properties.- Parameters:
virtualNetworkInterface
- the virtualNetworkInterface
-
-
Method Detail
-
build
public BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype build()
Builds a BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.- Returns:
- the new BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype instance
-
addAllowedVlans
public BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder addAllowedVlans(Long allowedVlans)
Adds a new element to allowedVlans.- Parameters:
allowedVlans
- the new element to be added- Returns:
- the BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype builder
-
name
public BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype builder
-
virtualNetworkInterface
public BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder virtualNetworkInterface(BareMetalServerNetworkAttachmentPrototypeVirtualNetworkInterface virtualNetworkInterface)
Set the virtualNetworkInterface.- Parameters:
virtualNetworkInterface
- the virtualNetworkInterface- Returns:
- the BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype builder
-
allowedVlans
public BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder allowedVlans(List<Long> allowedVlans)
Set the allowedVlans. Existing allowedVlans will be replaced.- Parameters:
allowedVlans
- the allowedVlans- Returns:
- the BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype builder
-
interfaceType
public BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype.Builder interfaceType(String interfaceType)
Set the interfaceType.- Parameters:
interfaceType
- the interfaceType- Returns:
- the BareMetalServerPrimaryNetworkAttachmentPrototypeBareMetalServerPrimaryNetworkAttachmentByPCIPrototype builder
-
-