public static final class NodeNetworkInterfaceProperties.Builder
extends java.lang.Object
NodeNetworkInterfaceProperties
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
NodeNetworkInterfaceProperties . |
Modifier and Type | Method and Description |
---|---|
NodeNetworkInterfaceProperties |
build() |
NodeNetworkInterfaceProperties.Builder |
setAdminStatus(java.lang.String adminStatus)
Possible values are:
NodeNetworkInterfaceProperties.ADMIN_STATUS_UP
NodeNetworkInterfaceProperties.ADMIN_STATUS_DOWN
Interface administration status
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
NodeNetworkInterfaceProperties.Builder |
setBondCurActiveSlave(java.lang.String bondCurActiveSlave)
Bond's currently active slave device
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setBondLacpRate(java.lang.String bondLacpRate)
Bond's rate at which we'll ask our link partner to transmit LACPDU packets in
802.3ad mode
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setBondMode(java.lang.String bondMode)
Possible values are:
NodeNetworkInterfaceProperties.BOND_MODE_ACTIVE_BACKUP
NodeNetworkInterfaceProperties.BOND_MODE_802_3AD
NodeNetworkInterfaceProperties.BOND_MODE_ROUND_ROBIN
NodeNetworkInterfaceProperties.BOND_MODE_BROADCAST
NodeNetworkInterfaceProperties.BOND_MODE_XOR
NodeNetworkInterfaceProperties.BOND_MODE_TLB
NodeNetworkInterfaceProperties.BOND_MODE_ALB
Bond mode |
NodeNetworkInterfaceProperties.Builder |
setBondPrimary(java.lang.String bondPrimary)
Bond's primary device name in active-backup bond mode
|
NodeNetworkInterfaceProperties.Builder |
setBondPrimarySlave(java.lang.String bondPrimarySlave)
Bond's primary device name in active-backup bond mode
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setBondSlaves(java.util.List<java.lang.String> bondSlaves)
Bond's slave devices
|
NodeNetworkInterfaceProperties.Builder |
setBondXmitHashPolicy(java.lang.String bondXmitHashPolicy)
Possible values are:
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_LAYER2
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_LAYER2_3
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_LAYER3_4
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_ENCAP2_3
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_ENCAP3_4
Bond's transmit hash policy for balance-xor and 802.3ad modes
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
NodeNetworkInterfaceProperties.Builder |
setBroadcastAddress(java.lang.String broadcastAddress)
Interface broadcast address
|
NodeNetworkInterfaceProperties.Builder |
setDefaultGateway(java.lang.String defaultGateway)
Interface's default gateway
|
NodeNetworkInterfaceProperties.Builder |
setInterfaceId(java.lang.String interfaceId)
Interface ID
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setIp6Addresses(java.util.List<IPv6AddressProperties> ip6Addresses)
Interface IPv6 addresses
|
NodeNetworkInterfaceProperties.Builder |
setIpAddresses(java.util.List<IPv4AddressProperties> ipAddresses)
Interface IP addresses
|
NodeNetworkInterfaceProperties.Builder |
setIpConfiguration(java.lang.String ipConfiguration)
Possible values are:
NodeNetworkInterfaceProperties.IP_CONFIGURATION_DHCP
NodeNetworkInterfaceProperties.IP_CONFIGURATION_STATIC
NodeNetworkInterfaceProperties.IP_CONFIGURATION_NOT_CONFIGURED
Interface configuration |
NodeNetworkInterfaceProperties.Builder |
setIsKni(java.lang.Boolean isKni)
Interface is a KNI
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setLinks(java.util.List<ResourceLink> links)
The server will populate this field when returing the resource.
|
NodeNetworkInterfaceProperties.Builder |
setLinkStatus(java.lang.String linkStatus)
Possible values are:
NodeNetworkInterfaceProperties.LINK_STATUS_UP
NodeNetworkInterfaceProperties.LINK_STATUS_DOWN
Interface administration status
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored. |
NodeNetworkInterfaceProperties.Builder |
setMtu(java.lang.Long mtu)
Interface MTU format: int64
|
NodeNetworkInterfaceProperties.Builder |
setPhysicalAddress(java.lang.String physicalAddress)
Interface MAC address
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setPlane(java.lang.String plane)
Possible values are:
NodeNetworkInterfaceProperties.PLANE_MGMT NodeNetworkInterfaceProperties.PLANE_DEBUG
NodeNetworkInterfaceProperties.PLANE_NONE
Interface plane |
NodeNetworkInterfaceProperties.Builder |
setSchema(java.lang.String schema)
Schema for this resource
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
NodeNetworkInterfaceProperties.Builder |
setSelf(SelfResourceLink self) |
NodeNetworkInterfaceProperties.Builder |
setVlan(java.lang.Long vlan)
VLAN Id format: int64
This property may be present in responses from the server, but if it is present
in a request to server it will be ignored.
|
public Builder()
NodeNetworkInterfaceProperties
.public NodeNetworkInterfaceProperties.Builder setLinks(java.util.List<ResourceLink> links)
links
- New value for the property.public NodeNetworkInterfaceProperties.Builder setSchema(java.lang.String schema)
schema
- New value for the property.public NodeNetworkInterfaceProperties.Builder setSelf(SelfResourceLink self)
self
- New value for the property.public NodeNetworkInterfaceProperties.Builder setAdminStatus(java.lang.String adminStatus)
adminStatus
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondCurActiveSlave(java.lang.String bondCurActiveSlave)
bondCurActiveSlave
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondLacpRate(java.lang.String bondLacpRate)
bondLacpRate
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondMode(java.lang.String bondMode)
NodeNetworkInterfaceProperties.BOND_MODE_ACTIVE_BACKUP
NodeNetworkInterfaceProperties.BOND_MODE_802_3AD
NodeNetworkInterfaceProperties.BOND_MODE_ROUND_ROBIN
NodeNetworkInterfaceProperties.BOND_MODE_BROADCAST
NodeNetworkInterfaceProperties.BOND_MODE_XOR
NodeNetworkInterfaceProperties.BOND_MODE_TLB
NodeNetworkInterfaceProperties.BOND_MODE_ALB
bondMode
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondPrimary(java.lang.String bondPrimary)
bondPrimary
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondPrimarySlave(java.lang.String bondPrimarySlave)
bondPrimarySlave
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondSlaves(java.util.List<java.lang.String> bondSlaves)
bondSlaves
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBondXmitHashPolicy(java.lang.String bondXmitHashPolicy)
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_LAYER2
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_LAYER2_3
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_LAYER3_4
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_ENCAP2_3
NodeNetworkInterfaceProperties.BOND_XMIT_HASH_POLICY_ENCAP3_4
bondXmitHashPolicy
- New value for the property.public NodeNetworkInterfaceProperties.Builder setBroadcastAddress(java.lang.String broadcastAddress)
broadcastAddress
- New value for the property.public NodeNetworkInterfaceProperties.Builder setDefaultGateway(java.lang.String defaultGateway)
defaultGateway
- New value for the property.public NodeNetworkInterfaceProperties.Builder setInterfaceId(java.lang.String interfaceId)
interfaceId
- New value for the property.public NodeNetworkInterfaceProperties.Builder setIp6Addresses(java.util.List<IPv6AddressProperties> ip6Addresses)
ip6Addresses
- New value for the property.public NodeNetworkInterfaceProperties.Builder setIpAddresses(java.util.List<IPv4AddressProperties> ipAddresses)
ipAddresses
- New value for the property.public NodeNetworkInterfaceProperties.Builder setIpConfiguration(java.lang.String ipConfiguration)
ipConfiguration
- New value for the property.public NodeNetworkInterfaceProperties.Builder setIsKni(java.lang.Boolean isKni)
isKni
- New value for the property.public NodeNetworkInterfaceProperties.Builder setLinkStatus(java.lang.String linkStatus)
linkStatus
- New value for the property.public NodeNetworkInterfaceProperties.Builder setMtu(java.lang.Long mtu)
mtu
- New value for the property.public NodeNetworkInterfaceProperties.Builder setPhysicalAddress(java.lang.String physicalAddress)
physicalAddress
- New value for the property.public NodeNetworkInterfaceProperties.Builder setPlane(java.lang.String plane)
plane
- New value for the property.public NodeNetworkInterfaceProperties.Builder setVlan(java.lang.Long vlan)
vlan
- New value for the property.public NodeNetworkInterfaceProperties build()