org.jclouds.cloudstack.domain
Class Pod

java.lang.Object
  extended by org.jclouds.cloudstack.domain.Pod
All Implemented Interfaces:
Comparable<Pod>

public class Pod
extends Object
implements Comparable<Pod>

Represents a Pod in CloudStack.

Author:
Richard Downer

Nested Class Summary
static class Pod.Builder
           
 
Constructor Summary
Pod(long id, String name, long zoneId, String zoneName, String gateway, String netmask, String startIp, String endIp, AllocationState allocationState)
           
 
Method Summary
static Pod.Builder builder()
           
 int compareTo(Pod other)
           
 boolean equals(Object o)
           
 AllocationState getAllocationState()
           
 String getEndIp()
           
 String getGateway()
           
 long getId()
           
 String getName()
           
 String getNetmask()
           
 String getStartIp()
           
 long getZoneId()
           
 String getZoneName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pod

public Pod(long id,
           String name,
           long zoneId,
           String zoneName,
           String gateway,
           String netmask,
           String startIp,
           String endIp,
           AllocationState allocationState)
Method Detail

builder

public static Pod.Builder builder()

getId

public long getId()
Returns:
id the ID of the Pod

getName

public String getName()
Returns:
name the name of the Pod

getZoneId

public long getZoneId()
Returns:
zoneId the Zone ID of the Pod

getZoneName

public String getZoneName()
Returns:
zoneName the Zone name of the Pod

getGateway

public String getGateway()
Returns:
gateway the gateway of the Pod

getNetmask

public String getNetmask()
Returns:
netmask the netmask of the Pod

getStartIp

public String getStartIp()
Returns:
startIp the starting IP for the Pod

getEndIp

public String getEndIp()
Returns:
endIp the ending IP for the Pod

getAllocationState

public AllocationState getAllocationState()
Parameters:
allocationState - the allocation state of the cluster

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(Pod other)
Specified by:
compareTo in interface Comparable<Pod>


Copyright © 2009-2012 jclouds. All Rights Reserved.