public static final class DefaultPortChain.Builder extends Object implements PortChain.Builder
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
PortChain |
build()
Builds a port chain object.
|
DefaultPortChain.Builder |
setDescription(String description)
Assigns the description to this object.
|
DefaultPortChain.Builder |
setFlowClassifiers(List<FlowClassifierId> flowClassifiers)
Assigns the flow classifiers associated with the port chain
to this object.
|
DefaultPortChain.Builder |
setId(PortChainId portChainId)
Assigns the port chain id to this object.
|
DefaultPortChain.Builder |
setName(String name)
Assigns the name to this object.
|
DefaultPortChain.Builder |
setPortPairGroups(List<PortPairGroupId> portPairGroups)
Assigns the port pair groups associated with the port chain
to this object.
|
DefaultPortChain.Builder |
setTenantId(TenantId tenantId)
Assigns tenant id to this object.
|
public DefaultPortChain.Builder setId(PortChainId portChainId)
PortChain.BuildersetId in interface PortChain.BuilderportChainId - the port chain idpublic DefaultPortChain.Builder setTenantId(TenantId tenantId)
PortChain.BuildersetTenantId in interface PortChain.BuildertenantId - tenant id of the port chainpublic DefaultPortChain.Builder setName(String name)
PortChain.BuildersetName in interface PortChain.Buildername - name of the port chainpublic DefaultPortChain.Builder setDescription(String description)
PortChain.BuildersetDescription in interface PortChain.Builderdescription - description of the port chainpublic DefaultPortChain.Builder setPortPairGroups(List<PortPairGroupId> portPairGroups)
PortChain.BuildersetPortPairGroups in interface PortChain.BuilderportPairGroups - list of port pair groupspublic DefaultPortChain.Builder setFlowClassifiers(List<FlowClassifierId> flowClassifiers)
PortChain.BuildersetFlowClassifiers in interface PortChain.BuilderflowClassifiers - list of flow classifierspublic PortChain build()
PortChain.Builderbuild in interface PortChain.Builder