Class PortOperator.PortBuilder
java.lang.Object
com.eqixiac.equinix.fabric.model.json.creators.PortOperator.PortBuilder
- Enclosing class:
PortOperator
Fluent builder for
PortCreatorJson. Each setter returns this; create()
sends the POST and returns the created port wrapped as a Port.- Author:
- ianjones
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountNumber(Long accountNumber) Sets the BMMR type (SELForEQUINIX); mandatory when the connectivity source type isBMMR.connectivitySourceType(ConnectivitySourceType connectivitySourceType) Sets the port connectivity type (specPortRequest.connectivitySourceType:COLO,BMMRorREMOTE).create()demarcationPointIbx(String demarcationPointIbx) Sets the A-side/Equinix IBX for the demarcation point.dryRun()Marks this create as a validate-only dry run:create()sendsPOST /fabric/v4/ports?dryRun=true(spec: "option to verify that API calls will succeed"; boolean, defaultfalse).lagEnabled(Boolean lagEnabled) physicalPortsCount(Integer physicalPortsCount) physicalPortsSpeed(Integer physicalPortsSpeed) physicalPortsType(PhysicalPortType physicalPortsType) serviceCode(PortServiceCode serviceCode) Sets the service code identifying the service type associated with this port (CX,IX,IAorMC).Sets the z-side/Equinix IBX for the tether.withDemarcationPoint(DemarcationPoint demarcationPoint) Sets the customer demarcation point (PortDemarcationPoint).withEncapsulation(Encapsulation encapsulation) Sets the port letters of authorization (PortLoaentries).withNotifications(List<PortNotification> notifications) Sets the notification preferences (PortNotificationentries).Sets the order details (purchase order, customer reference id, signature), following the spec'sPortOrderrequest shape.withPackage(PackageRef portPackage) Sets the billing package for the port (Package:STANDARD,UNLIMITEDorUNLIMITED_PLUS).withPhysicalPorts(List<PhysicalPort> physicalPorts) Sets the physical ports that implement this port.withProject(Project project) withRedundancy(Redundancy redundancy) Sets the redundancy configuration (PortRedundancy), e.g. the primary port's uuid as group and aSECONDARYpriority when ordering a redundant port.
-
Constructor Details
-
PortBuilder
protected PortBuilder()
-
-
Method Details
-
dryRun
Marks this create as a validate-only dry run:create()sendsPOST /fabric/v4/ports?dryRun=true(spec: "option to verify that API calls will succeed"; boolean, defaultfalse). No port is ordered — the API responds200(rather than the real create's202) with the validated port order echoed back, so the returnedPortcarries no uuid/name/state.- Returns:
- this builder
-
ofType
-
physicalPortsSpeed
-
physicalPortsType
-
physicalPortsCount
-
connectivitySourceType
public PortOperator.PortBuilder connectivitySourceType(ConnectivitySourceType connectivitySourceType) Sets the port connectivity type (specPortRequest.connectivitySourceType:COLO,BMMRorREMOTE).- Parameters:
connectivitySourceType- the connectivity source type- Returns:
- this builder
-
bmmrType
Sets the BMMR type (SELForEQUINIX); mandatory when the connectivity source type isBMMR.- Parameters:
bmmrType- the BMMR type- Returns:
- this builder
-
lagEnabled
-
withProject
-
projectId
-
accountNumber
-
metroCode
-
withEncapsulation
-
withOrder
Sets the order details (purchase order, customer reference id, signature), following the spec'sPortOrderrequest shape.- Parameters:
order- the port order details- Returns:
- this builder
-
demarcationPointIbx
Sets the A-side/Equinix IBX for the demarcation point.- Parameters:
demarcationPointIbx- the A-side IBX code- Returns:
- this builder
-
tetherIbx
Sets the z-side/Equinix IBX for the tether.- Parameters:
tetherIbx- the z-side IBX code- Returns:
- this builder
-
withDemarcationPoint
Sets the customer demarcation point (PortDemarcationPoint).- Parameters:
demarcationPoint- the demarcation point- Returns:
- this builder
-
withRedundancy
Sets the redundancy configuration (PortRedundancy), e.g. the primary port's uuid as group and aSECONDARYpriority when ordering a redundant port.- Parameters:
redundancy- the redundancy configuration- Returns:
- this builder
-
withPackage
Sets the billing package for the port (Package:STANDARD,UNLIMITEDorUNLIMITED_PLUS).- Parameters:
portPackage- the port package- Returns:
- this builder
-
withNotifications
Sets the notification preferences (PortNotificationentries).- Parameters:
notifications- the notification preferences- Returns:
- this builder
-
withPhysicalPorts
Sets the physical ports that implement this port.- Parameters:
physicalPorts- the physical member ports- Returns:
- this builder
-
withLoas
Sets the port letters of authorization (PortLoaentries).- Parameters:
loas- the port LOAs- Returns:
- this builder
-
serviceCode
Sets the service code identifying the service type associated with this port (CX,IX,IAorMC).- Parameters:
serviceCode- the service code- Returns:
- this builder
-
create
-