org.jclouds.cloudstack.domain
Class Domain

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

public class Domain
extends Object
implements Comparable<Domain>

Representation of the API domain response

Author:
Andrei Savu

Nested Class Summary
static class Domain.Builder<T extends Domain.Builder<T>>
           
 
Constructor Summary
protected Domain(String id, boolean hasChild, long level, String name, String networkDomain, String parentDomainId, String parentDomainName)
           
 
Method Summary
static Domain.Builder<?> builder()
           
 int compareTo(Domain other)
           
 boolean equals(Object obj)
           
 String getId()
           
 long getLevel()
           
 String getName()
           
 String getNetworkDomain()
           
 String getParentDomainId()
           
 String getParentDomainName()
           
 boolean hasChild()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 Domain.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Domain

@ConstructorProperties(value={"id","haschild","level","name","networkdomain","parentdomainid","parentdomainname"})
protected Domain(String id,
                                            boolean hasChild,
                                            long level,
                                            @Nullable
                                            String name,
                                            @Nullable
                                            String networkDomain,
                                            @Nullable
                                            String parentDomainId,
                                            @Nullable
                                            String parentDomainName)
Method Detail

builder

public static Domain.Builder<?> builder()

toBuilder

public Domain.Builder<?> toBuilder()

getId

public String getId()

hasChild

public boolean hasChild()

getLevel

public long getLevel()

getName

@Nullable
public String getName()

getNetworkDomain

@Nullable
public String getNetworkDomain()

getParentDomainId

@Nullable
public String getParentDomainId()

getParentDomainName

@Nullable
public String getParentDomainName()

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(Domain other)
Specified by:
compareTo in interface Comparable<Domain>


Copyright © 2009-2013 jclouds. All Rights Reserved.