public static class NeutronPort.PortConcreteBuilder extends ResourceBuilder<Port,NeutronPort.PortConcreteBuilder> implements PortBuilder
Modifier and Type | Method and Description |
---|---|
PortBuilder |
adminState(boolean adminStateUp) |
PortBuilder |
allowedAddressPair(String ipAddress,
String macAddress)
Adds an allowed address pair to the current list of allowed addresses
|
Port |
build()
Creates and return the Model Entity M
|
PortBuilder |
deviceId(String deviceId) |
PortBuilder |
deviceOwner(String deviceOwner) |
PortBuilder |
extraDhcpOpt(ExtraDhcpOptCreate extraDhcpOptCreate) |
PortBuilder |
fixedIp(String address,
String subnetId)
Adds a fixed IP to the current list of fixed IP Addresses
|
PortBuilder |
from(Port in)
Creates a Builder using the param M as the default values
|
PortBuilder |
hostId(String hostId) |
PortBuilder |
macAddress(String macAddress) |
PortBuilder |
networkId(String networkId) |
PortBuilder |
portSecurityEnabled(Boolean portSecurityEnabled) |
PortBuilder |
profile(Map<String,Object> profile) |
protected Port |
reference() |
PortBuilder |
removeAddressPair(String ipAddress,
String macAddress)
Removes an allowed address pair from the current list of allowed addresses
|
PortBuilder |
removeFixedIp(String address,
String subnetId)
Removes a fixed IP from the current list of fixed IP Addresses
|
PortBuilder |
securityGroup(String groupName) |
PortBuilder |
state(State state) |
PortBuilder |
vifDetails(Map<String,Object> vifDetails) |
PortBuilder |
vifType(String vifType) |
PortBuilder |
vNicType(String vNicType) |
tenant, tenantId
id, name, self
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name, tenant, tenantId
public PortBuilder networkId(String networkId)
networkId
in interface PortBuilder
Port.getNetworkId()
public PortBuilder deviceId(String deviceId)
deviceId
in interface PortBuilder
Port.getDeviceId()
public PortBuilder deviceOwner(String deviceOwner)
deviceOwner
in interface PortBuilder
Port.getDeviceOwner()
public PortBuilder macAddress(String macAddress)
macAddress
in interface PortBuilder
Port.getMacAddress()
public PortBuilder fixedIp(String address, String subnetId)
PortBuilder
fixedIp
in interface PortBuilder
address
- the IP AddresssubnetId
- the subnet identifierPort.getFixedIps()
public PortBuilder removeFixedIp(String address, String subnetId)
PortBuilder
removeFixedIp
in interface PortBuilder
address
- the IP AddresssubnetId
- the subnet identifierpublic PortBuilder allowedAddressPair(String ipAddress, String macAddress)
PortBuilder
allowedAddressPair
in interface PortBuilder
ipAddress
- the Subnet Address (i.e. 192.168.1.0/24)macAddress
- the MAC AddressPort.getAllowedAddressPairs()
public PortBuilder removeAddressPair(String ipAddress, String macAddress)
PortBuilder
removeAddressPair
in interface PortBuilder
ipAddress
- the Subnet Address (i.e. 192.168.1.0/24)macAddress
- the MAC addressPort.getAllowedAddressPairs()
public PortBuilder adminState(boolean adminStateUp)
adminState
in interface PortBuilder
Port.isAdminStateUp()
public PortBuilder state(State state)
state
in interface PortBuilder
Port.getState()
public Port build()
Buildable.Builder
build
in interface Buildable.Builder<PortBuilder,Port>
public PortBuilder from(Port in)
Buildable.Builder
from
in interface Buildable.Builder<PortBuilder,Port>
protected Port reference()
reference
in class BasicResourceBuilder<Port,NeutronPort.PortConcreteBuilder>
public PortBuilder extraDhcpOpt(ExtraDhcpOptCreate extraDhcpOptCreate)
extraDhcpOpt
in interface PortBuilder
public PortBuilder securityGroup(String groupName)
securityGroup
in interface PortBuilder
public PortBuilder portSecurityEnabled(Boolean portSecurityEnabled)
portSecurityEnabled
in interface PortBuilder
public PortBuilder hostId(String hostId)
hostId
in interface PortBuilder
public PortBuilder vifType(String vifType)
vifType
in interface PortBuilder
public PortBuilder vifDetails(Map<String,Object> vifDetails)
vifDetails
in interface PortBuilder
public PortBuilder vNicType(String vNicType)
vNicType
in interface PortBuilder
public PortBuilder profile(Map<String,Object> profile)
profile
in interface PortBuilder
Copyright © 2017. All rights reserved.