org.jclouds.vcloud.domain.network.internal
Class VCloudExpressNetworkImpl

java.lang.Object
  extended by org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
      extended by org.jclouds.vcloud.domain.network.internal.VCloudExpressNetworkImpl
All Implemented Interfaces:
Comparable<org.jclouds.vcloud.domain.ReferenceType>, VCloudExpressNetwork, org.jclouds.vcloud.domain.ReferenceType

public class VCloudExpressNetworkImpl
extends org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
implements VCloudExpressNetwork

Locations of resources in vCloud

Author:
Adrian Cole

Field Summary
protected  String description
           
protected  Boolean dhcp
           
protected  Set<String> dnsServers
           
protected  Set<org.jclouds.vcloud.domain.network.FenceMode> fenceModes
           
protected  Set<org.jclouds.vcloud.domain.network.firewall.FirewallRule> firewallRules
           
protected  String gateway
           
protected  Set<org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule> natRules
           
protected  String netmask
           
 
Constructor Summary
VCloudExpressNetworkImpl(String name, String type, URI id, String description, Set<String> dnsServers, String gateway, String netmask, Set<org.jclouds.vcloud.domain.network.FenceMode> fenceModes, Boolean dhcp, Set<org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule> natRules, Set<org.jclouds.vcloud.domain.network.firewall.FirewallRule> firewallRules)
           
 
Method Summary
 int compareTo(org.jclouds.vcloud.domain.ReferenceType o)
           
 boolean equals(Object obj)
           
 String getDescription()
          
 Set<String> getDnsServers()
          
 Set<org.jclouds.vcloud.domain.network.FenceMode> getFenceModes()
          return the network’s fence modes.
 Set<org.jclouds.vcloud.domain.network.firewall.FirewallRule> getFirewallRules()
          
 String getGateway()
          
 Set<org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule> getNatRules()
          
 String getNetmask()
          *
 int hashCode()
           
 Boolean isDhcp()
          return True if the network provides DHCP services
 String toString()
           
 
Methods inherited from class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
getHref, getName, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.vcloud.domain.ReferenceType
getHref, getName, getType
 

Field Detail

description

protected final String description

dnsServers

protected final Set<String> dnsServers

gateway

protected final String gateway

netmask

protected final String netmask

fenceModes

protected final Set<org.jclouds.vcloud.domain.network.FenceMode> fenceModes

dhcp

@Nullable
protected final Boolean dhcp

natRules

protected final Set<org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule> natRules

firewallRules

protected final Set<org.jclouds.vcloud.domain.network.firewall.FirewallRule> firewallRules
Constructor Detail

VCloudExpressNetworkImpl

public VCloudExpressNetworkImpl(String name,
                                String type,
                                URI id,
                                String description,
                                Set<String> dnsServers,
                                String gateway,
                                String netmask,
                                Set<org.jclouds.vcloud.domain.network.FenceMode> fenceModes,
                                Boolean dhcp,
                                Set<org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule> natRules,
                                Set<org.jclouds.vcloud.domain.network.firewall.FirewallRule> firewallRules)
Method Detail

getDescription

public String getDescription()

Specified by:
getDescription in interface VCloudExpressNetwork
Returns:
Description of the network

getDnsServers

public Set<String> getDnsServers()

Specified by:
getDnsServers in interface VCloudExpressNetwork
Returns:
IP addresses of the network’s DNS servers.

getGateway

public String getGateway()

Specified by:
getGateway in interface VCloudExpressNetwork
Returns:
The IP address of the network’s primary gateway

getNetmask

public String getNetmask()
*

Specified by:
getNetmask in interface VCloudExpressNetwork
Returns:
the network’s subnet mask

getFenceModes

public Set<org.jclouds.vcloud.domain.network.FenceMode> getFenceModes()
return the network’s fence modes.

Specified by:
getFenceModes in interface VCloudExpressNetwork

isDhcp

public Boolean isDhcp()
return True if the network provides DHCP services

Specified by:
isDhcp in interface VCloudExpressNetwork

getNatRules

public Set<org.jclouds.vcloud.domain.network.nat.rules.PortForwardingRule> getNatRules()

Specified by:
getNatRules in interface VCloudExpressNetwork
Returns:
Network Address Translation rules for the network

getFirewallRules

public Set<org.jclouds.vcloud.domain.network.firewall.FirewallRule> getFirewallRules()

Specified by:
getFirewallRules in interface VCloudExpressNetwork
Returns:
Firewall rules for the network

compareTo

public int compareTo(org.jclouds.vcloud.domain.ReferenceType o)
Specified by:
compareTo in interface Comparable<org.jclouds.vcloud.domain.ReferenceType>
Overrides:
compareTo in class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl

hashCode

public int hashCode()
Overrides:
hashCode in class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl

equals

public boolean equals(Object obj)
Overrides:
equals in class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl

toString

public String toString()
Overrides:
toString in class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl


Copyright © 2009-2011 jclouds. All Rights Reserved.