org.jclouds.elasticstack.domain
Class NIC

java.lang.Object
  extended by org.jclouds.elasticstack.domain.NIC

public class NIC
extends Object

Author:
Adrian Cole

Nested Class Summary
static class NIC.Builder
           
 
Constructor Summary
NIC(String dhcp, Model model, String vlan, String mac, Iterable<String> block)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<String> getBlock()
           
 String getDhcp()
           
 String getMac()
           
 Model getModel()
           
 String getVlan()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NIC

public NIC(@Nullable
           String dhcp,
           Model model,
           @Nullable
           String vlan,
           @Nullable
           String mac,
           Iterable<String> block)
Method Detail

getDhcp

public String getDhcp()
Returns:
The IP address offered by DHCP to network interface 0. If unset, no address is offered. Set to 'auto' to allocate a temporary IP at boot.

getModel

public Model getModel()
Returns:
Create network interface with given type (use 'e1000' as default value; 'rtl8139' or 'virtio' are also available).

getVlan

public String getVlan()
Returns:
The VLAN to which the network interface is attached.

getMac

public String getMac()
Returns:
The MAC address of the network interface. If unset, a randomly generated address is used. If set, should be unique on the VLAN.

getBlock

public Set<String> getBlock()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.