Class NeutronPort.PortConcreteBuilder
- java.lang.Object
-
- org.openstack4j.model.common.builder.BasicResourceBuilder<M,T>
-
- org.openstack4j.model.common.builder.ResourceBuilder<Port,NeutronPort.PortConcreteBuilder>
-
- org.openstack4j.openstack.networking.domain.NeutronPort.PortConcreteBuilder
-
- All Implemented Interfaces:
Buildable.Builder<PortBuilder,Port>,PortBuilder
- Enclosing class:
- NeutronPort
public static class NeutronPort.PortConcreteBuilder extends ResourceBuilder<Port,NeutronPort.PortConcreteBuilder> implements PortBuilder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PortBuilderadminState(boolean adminStateUp)PortBuilderallowedAddressPair(String ipAddress, String macAddress)Adds an allowed address pair to the current list of allowed addressesPortbuild()Creates and return the Model Entity MPortBuilderdeviceId(String deviceId)PortBuilderdeviceOwner(String deviceOwner)PortBuilderextraDhcpOpt(ExtraDhcpOptCreate extraDhcpOptCreate)PortBuilderfixedIp(String address, String subnetId)Adds a fixed IP to the current list of fixed IP AddressesPortBuilderfrom(Port in)Creates a Builder using the param M as the default valuesPortBuilderhostId(String hostId)PortBuildermacAddress(String macAddress)PortBuildernetworkId(String networkId)PortBuilderportSecurityEnabled(Boolean portSecurityEnabled)PortBuilderprofile(Map<String,Object> profile)protected Portreference()PortBuilderremoveAddressPair(String ipAddress, String macAddress)Removes an allowed address pair from the current list of allowed addressesPortBuilderremoveFixedIp(String address, String subnetId)Removes a fixed IP from the current list of fixed IP AddressesPortBuildersecurityGroup(String groupName)PortBuilderstate(State state)PortBuildertrunkPortParentId(String parentPortId)PortBuildertrunkPortType(String trunkPortType)PortBuildertrunkPortVlanId(String vlanId)PortBuildervifDetails(Map<String,Object> vifDetails)PortBuildervifType(String vifType)PortBuildervNicType(String vNicType)-
Methods inherited from class org.openstack4j.model.common.builder.ResourceBuilder
tenant, tenantId
-
Methods inherited from class org.openstack4j.model.common.builder.BasicResourceBuilder
id, name, self
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstack4j.model.network.builder.PortBuilder
name, tenant, tenantId
-
-
-
-
Method Detail
-
networkId
public PortBuilder networkId(String networkId)
- Specified by:
networkIdin interfacePortBuilder- See Also:
Port.getNetworkId()
-
deviceId
public PortBuilder deviceId(String deviceId)
- Specified by:
deviceIdin interfacePortBuilder- See Also:
Port.getDeviceId()
-
deviceOwner
public PortBuilder deviceOwner(String deviceOwner)
- Specified by:
deviceOwnerin interfacePortBuilder- See Also:
Port.getDeviceOwner()
-
macAddress
public PortBuilder macAddress(String macAddress)
- Specified by:
macAddressin interfacePortBuilder- See Also:
Port.getMacAddress()
-
fixedIp
public PortBuilder fixedIp(String address, String subnetId)
Description copied from interface:PortBuilderAdds a fixed IP to the current list of fixed IP Addresses- Specified by:
fixedIpin interfacePortBuilder- Parameters:
address- the IP AddresssubnetId- the subnet identifier- Returns:
- PortBuilder
- See Also:
Port.getFixedIps()
-
removeFixedIp
public PortBuilder removeFixedIp(String address, String subnetId)
Description copied from interface:PortBuilderRemoves a fixed IP from the current list of fixed IP Addresses- Specified by:
removeFixedIpin interfacePortBuilder- Parameters:
address- the IP AddresssubnetId- the subnet identifier- Returns:
- PortBuilder
-
allowedAddressPair
public PortBuilder allowedAddressPair(String ipAddress, String macAddress)
Description copied from interface:PortBuilderAdds an allowed address pair to the current list of allowed addresses- Specified by:
allowedAddressPairin interfacePortBuilder- Parameters:
ipAddress- the Subnet Address (i.e. 192.168.1.0/24)macAddress- the MAC Address- Returns:
- PortBuilder
- See Also:
Port.getAllowedAddressPairs()
-
removeAddressPair
public PortBuilder removeAddressPair(String ipAddress, String macAddress)
Description copied from interface:PortBuilderRemoves an allowed address pair from the current list of allowed addresses- Specified by:
removeAddressPairin interfacePortBuilder- Parameters:
ipAddress- the Subnet Address (i.e. 192.168.1.0/24)macAddress- the MAC address- Returns:
- PortBuilder
- See Also:
Port.getAllowedAddressPairs()
-
adminState
public PortBuilder adminState(boolean adminStateUp)
- Specified by:
adminStatein interfacePortBuilder- See Also:
Port.isAdminStateUp()
-
state
public PortBuilder state(State state)
- Specified by:
statein interfacePortBuilder- See Also:
Port.getState()
-
trunkPortParentId
public PortBuilder trunkPortParentId(String parentPortId)
- Specified by:
trunkPortParentIdin interfacePortBuilder- Parameters:
parentPortId- - ID of of the parent port- Returns:
- PortBuilder
- See Also:
Port.getTrunkPortParentId()
-
trunkPortType
public PortBuilder trunkPortType(String trunkPortType)
- Specified by:
trunkPortTypein interfacePortBuilder- Parameters:
trunkPortType- - type of the port- Returns:
- PortBuilder
- See Also:
Port.getTrunkPortType()
-
trunkPortVlanId
public PortBuilder trunkPortVlanId(String vlanId)
- Specified by:
trunkPortVlanIdin interfacePortBuilder- Parameters:
vlanId- - ID of the vlan connected to trunk port- Returns:
- PortBuilder
- See Also:
Port.getTrunkPortVlanId()
-
build
public Port build()
Description copied from interface:Buildable.BuilderCreates and return the Model Entity M- Specified by:
buildin interfaceBuildable.Builder<PortBuilder,Port>- Returns:
- M instance
-
from
public PortBuilder from(Port in)
Description copied from interface:Buildable.BuilderCreates a Builder using the param M as the default values- Specified by:
fromin interfaceBuildable.Builder<PortBuilder,Port>- Returns:
- Builder
-
reference
protected Port reference()
- Specified by:
referencein classBasicResourceBuilder<Port,NeutronPort.PortConcreteBuilder>
-
extraDhcpOpt
public PortBuilder extraDhcpOpt(ExtraDhcpOptCreate extraDhcpOptCreate)
- Specified by:
extraDhcpOptin interfacePortBuilder
-
securityGroup
public PortBuilder securityGroup(String groupName)
- Specified by:
securityGroupin interfacePortBuilder
-
portSecurityEnabled
public PortBuilder portSecurityEnabled(Boolean portSecurityEnabled)
- Specified by:
portSecurityEnabledin interfacePortBuilder
-
hostId
public PortBuilder hostId(String hostId)
- Specified by:
hostIdin interfacePortBuilder
-
vifType
public PortBuilder vifType(String vifType)
- Specified by:
vifTypein interfacePortBuilder
-
vifDetails
public PortBuilder vifDetails(Map<String,Object> vifDetails)
- Specified by:
vifDetailsin interfacePortBuilder
-
vNicType
public PortBuilder vNicType(String vNicType)
- Specified by:
vNicTypein interfacePortBuilder
-
profile
public PortBuilder profile(Map<String,Object> profile)
- Specified by:
profilein interfacePortBuilder
-
-