public interface PortBuilder extends Buildable.Builder<PortBuilder,Port>
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
|
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 |
hostId(String hostId) |
PortBuilder |
macAddress(String macAddress) |
PortBuilder |
name(String name) |
PortBuilder |
networkId(String networkId) |
PortBuilder |
portSecurityEnabled(Boolean portSecurityEnabled) |
PortBuilder |
profile(Map<String,Object> profile) |
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 |
tenant(Tenant tenant) |
PortBuilder |
tenantId(String tenantId) |
PortBuilder |
vifDetails(Map<String,Object> vifDetails) |
PortBuilder |
vifType(String vifType) |
PortBuilder |
vNicType(String vNicType) |
build, from
PortBuilder name(String name)
BasicResource.getName()
PortBuilder tenantId(String tenantId)
Resource.getTenantId()
PortBuilder tenant(Tenant tenant)
Resource.getTenantId()
PortBuilder networkId(String networkId)
Port.getNetworkId()
PortBuilder deviceId(String deviceId)
Port.getDeviceId()
PortBuilder deviceOwner(String deviceOwner)
Port.getDeviceOwner()
PortBuilder macAddress(String macAddress)
Port.getMacAddress()
PortBuilder fixedIp(String address, String subnetId)
address
- the IP AddresssubnetId
- the subnet identifierPort.getFixedIps()
PortBuilder removeFixedIp(String address, String subnetId)
address
- the IP AddresssubnetId
- the subnet identifierPortBuilder allowedAddressPair(String ipAddress, String macAddress)
ipAddress
- the Subnet Address (i.e. 192.168.1.0/24)macAddress
- the MAC AddressPort.getAllowedAddressPairs()
PortBuilder removeAddressPair(String ipAddress, String macAddress)
ipAddress
- the Subnet Address (i.e. 192.168.1.0/24)macAddress
- the MAC addressPort.getAllowedAddressPairs()
PortBuilder adminState(boolean adminStateUp)
Port.isAdminStateUp()
PortBuilder state(State state)
Port.getState()
PortBuilder extraDhcpOpt(ExtraDhcpOptCreate extraDhcpOptCreate)
PortBuilder securityGroup(String groupName)
PortBuilder portSecurityEnabled(Boolean portSecurityEnabled)
PortBuilder hostId(String hostId)
PortBuilder vifType(String vifType)
PortBuilder vifDetails(Map<String,Object> vifDetails)
PortBuilder vNicType(String vNicType)
PortBuilder profile(Map<String,Object> profile)
Copyright © 2017. All rights reserved.