org.jclouds.vcloud.domain.network
Class IpScope
java.lang.Object
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.
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)
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.