org.jclouds.vcloud.domain.network
Class IpScope

java.lang.Object
  extended by org.jclouds.vcloud.domain.network.IpScope

public class IpScope
extends Object

The IpScope element defines the address range, gateway, netmask, and other properties of the network.


Constructor Summary
IpScope(boolean inherited, String gateway, String netmask, String dns1, String dns2, String dnsSuffix, Iterable<IpRange> ipRanges, Iterable<String> allocatedIpAddresses)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<String> getAllocatedIpAddresses()
           
 String getDns1()
           
 String getDns2()
           
 String getDnsSuffix()
           
 String getGateway()
           
 Set<IpRange> getIpRanges()
           
 String getNetmask()
           
 int hashCode()
           
 boolean isInherited()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IpScope

public IpScope(boolean inherited,
               @Nullable
               String gateway,
               @Nullable
               String netmask,
               @Nullable
               String dns1,
               @Nullable
               String dns2,
               @Nullable
               String dnsSuffix,
               Iterable<IpRange> ipRanges,
               Iterable<String> allocatedIpAddresses)
Method Detail

isInherited

public boolean isInherited()
Returns:
true of the values in this IpScope element are inherited from the ParentNetwork of the containing Configuration
Since:
vcloud api 0.9

getGateway

@Nullable
public String getGateway()
Returns:
IP address of the network gateway
Since:
vcloud api 0.8

getNetmask

@Nullable
public String getNetmask()
Returns:
netmask to apply to addresses on the network
Since:
vcloud api 0.8

getDns1

@Nullable
public String getDns1()
Returns:
IP address of the primary DNS server for this network
Since:
vcloud api 0.9

getDns2

@Nullable
public String getDns2()
Returns:
IP address of the secondary DNS server for this network
Since:
vcloud api 0.9

getDnsSuffix

@Nullable
public String getDnsSuffix()
Returns:
suffix to be applied when resolving hostnames that are not fully‐qualified.
Since:
vcloud api 0.9

getIpRanges

public Set<IpRange> getIpRanges()
Returns:
A container for IpRange elements.
Since:
vcloud api 0.9

getAllocatedIpAddresses

public Set<String> getAllocatedIpAddresses()
Returns:
A list of addresses allocated from any of the specified IpRanges
Since:
vcloud api 0.9

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-2011 jclouds. All Rights Reserved.