org.jclouds.cloudstack.domain
Class TemplatePermission

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

public class TemplatePermission
extends Object
implements Comparable<TemplatePermission>

Author:
Richard Downer

Nested Class Summary
static class TemplatePermission.Builder
           
 
Constructor Summary
TemplatePermission(long id, String account, long domainId, boolean isPublic)
          Construct a new TemplatePermission instance.
 
Method Summary
static TemplatePermission.Builder builder()
           
 int compareTo(TemplatePermission other)
           
 boolean equals(Object o)
           
 String getAccount()
          Gets the list of accounts the template is available for
 long getDomainId()
          Gets the ID of the domain to which the template belongs
 long getId()
          Gets the template ID
 int hashCode()
           
 boolean isPublic()
          Returns true if this template is a public template, false otherwise
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplatePermission

public TemplatePermission(long id,
                          String account,
                          long domainId,
                          boolean isPublic)
Construct a new TemplatePermission instance.

Parameters:
id - the template ID
account - the list of accounts the template is available for
domainId - the ID of the domain to which the template belongs
isPublic - true if this template is a public template, false otherwise
Method Detail

builder

public static TemplatePermission.Builder builder()

getId

public long getId()
Gets the template ID

Returns:
the template ID

getAccount

public String getAccount()
Gets the list of accounts the template is available for

Returns:
the list of accounts the template is available for

getDomainId

public long getDomainId()
Gets the ID of the domain to which the template belongs

Returns:
the ID of the domain to which the template belongs

isPublic

public boolean isPublic()
Returns true if this template is a public template, false otherwise

Returns:
true if this template is a public template, false otherwise

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


Copyright © 2009-2012 jclouds. All Rights Reserved.