org.jclouds.savvis.vpdc.domain
Class Network

java.lang.Object
  extended by org.jclouds.savvis.vpdc.domain.ResourceImpl
      extended by org.jclouds.savvis.vpdc.domain.Network
All Implemented Interfaces:
Comparable<Resource>, Resource

public class Network
extends ResourceImpl

Various network features such NAT Public IP, Gateway and Netmask.

Author:
Adrian Cole

Nested Class Summary
static class Network.Builder
           
 
Field Summary
 
Fields inherited from class org.jclouds.savvis.vpdc.domain.ResourceImpl
href, id, name, type
 
Constructor Summary
Network(String id, String name, String type, URI href, String gateway, String netmask, Map<String,String> internalToExternalNATRules)
           
 
Method Summary
static Network.Builder builder()
           
 String getGateway()
           
 Map<String,String> getInternalToExternalNATRules()
           
 String getNetmask()
           
 Network.Builder toBuilder()
           
 String toString()
           
 
Methods inherited from class org.jclouds.savvis.vpdc.domain.ResourceImpl
compareTo, equals, getHref, getId, getName, getType, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Network

public Network(String id,
               String name,
               String type,
               URI href,
               @Nullable
               String gateway,
               String netmask,
               Map<String,String> internalToExternalNATRules)
Method Detail

builder

public static Network.Builder builder()

getGateway

public String getGateway()
Returns:
IP of the network's gateway

getNetmask

public String getNetmask()
Returns:
IP of the network's netmask

getInternalToExternalNATRules

public Map<String,String> getInternalToExternalNATRules()
Returns:
map of internal to external ip when it has any nat1to1 enabled deployed VApp

toBuilder

public Network.Builder toBuilder()
Overrides:
toBuilder in class ResourceImpl

toString

public String toString()
Overrides:
toString in class ResourceImpl


Copyright © 2009-2012 jclouds. All Rights Reserved.