org.jclouds.cloudstack.domain
Class TemplatePermission

java.lang.Object
  extended by org.jclouds.cloudstack.domain.TemplatePermission

public class TemplatePermission
extends Object

Author:
Richard Downer

Nested Class Summary
static class TemplatePermission.Builder<T extends TemplatePermission.Builder<T>>
           
 
Constructor Summary
protected TemplatePermission(String id, String account, String domainId, boolean isPublic)
           
 
Method Summary
static TemplatePermission.Builder<?> builder()
           
 boolean equals(Object obj)
           
 String getAccount()
          Gets the list of accounts the template is available for
 String getDomainId()
          Gets the ID of the domain to which the template belongs
 String getId()
          Gets the template ID
 int hashCode()
           
 boolean isPublic()
          Returns true if this template is a public template, false otherwise
protected  com.google.common.base.Objects.ToStringHelper string()
           
 TemplatePermission.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TemplatePermission

@ConstructorProperties(value={"id","account","domainid","ispublic"})
protected TemplatePermission(String id,
                                                        @Nullable
                                                        String account,
                                                        @Nullable
                                                        String domainId,
                                                        boolean isPublic)
Method Detail

builder

public static TemplatePermission.Builder<?> builder()

toBuilder

public TemplatePermission.Builder<?> toBuilder()

getId

public String getId()
Gets the template ID

Returns:
the template ID

getAccount

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

Returns:
the list of accounts the template is available for

getDomainId

@Nullable
public String 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

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


Copyright © 2009-2013 jclouds. All Rights Reserved.