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<T extends Pod.Builder<T>>
           
 
Constructor Summary
protected Pod(String id, String name, String 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 obj)
           
 AllocationState getAllocationState()
           
 String getEndIp()
           
 String getGateway()
           
 String getId()
           
 String getName()
           
 String getNetmask()
           
 String getStartIp()
           
 String getZoneId()
           
 String getZoneName()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Pod.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pod

@ConstructorProperties(value={"id","name","zoneid","zonename","gateway","netmask","startip","endip","allocationstate"})
protected Pod(String id,
                                         @Nullable
                                         String name,
                                         @Nullable
                                         String zoneId,
                                         @Nullable
                                         String zoneName,
                                         @Nullable
                                         String gateway,
                                         @Nullable
                                         String netmask,
                                         @Nullable
                                         String startIp,
                                         @Nullable
                                         String endIp,
                                         @Nullable
                                         AllocationState allocationState)
Method Detail

builder

public static Pod.Builder<?> builder()

toBuilder

public Pod.Builder<?> toBuilder()

getId

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

getName

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

getZoneId

@Nullable
public String getZoneId()
Returns:
zoneId the Zone ID of the Pod

getZoneName

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

getGateway

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

getNetmask

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

getStartIp

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

getEndIp

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

getAllocationState

@Nullable
public AllocationState getAllocationState()
Returns:
the allocation state of the cluster

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()

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.