org.jclouds.cloudstack.domain
Class SecurityGroup

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

public class SecurityGroup
extends Object
implements Comparable<SecurityGroup>

Author:
Adrian Cole

Nested Class Summary
static class SecurityGroup.Builder
           
 
Constructor Summary
SecurityGroup(long id, String account, String name, String description, String domain, long domainId, Long jobId, Integer jobStatus, Set<IngressRule> ingressRules)
           
 
Method Summary
static SecurityGroup.Builder builder()
           
 int compareTo(SecurityGroup arg0)
           
 boolean equals(Object obj)
           
 String getAccount()
           
 String getDescription()
           
 String getDomain()
           
 long getDomainId()
           
 long getId()
           
 Set<IngressRule> getIngressRules()
           
 Long getJobId()
           
 Integer getJobStatus()
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityGroup

public SecurityGroup(long id,
                     String account,
                     String name,
                     String description,
                     String domain,
                     long domainId,
                     Long jobId,
                     Integer jobStatus,
                     Set<IngressRule> ingressRules)
Method Detail

builder

public static SecurityGroup.Builder builder()

getId

public long getId()
Returns:
the id of the security group

getName

public String getName()
Returns:
the name of the security group

getDescription

public String getDescription()
Returns:
an alternate display text of the security group.

getDomain

public String getDomain()
Returns:
Domain name for the security group

getDomainId

public long getDomainId()
Returns:
the domain id of the security group

getJobId

@Nullable
public Long getJobId()
Returns:
shows the current pending asynchronous job ID. This tag is not returned if no current pending jobs are acting on the virtual machine

getJobStatus

@Nullable
public Integer getJobStatus()
Returns:
shows the current pending asynchronous job status

getAccount

public String getAccount()
Returns:
the account owning the security group

getIngressRules

public Set<IngressRule> getIngressRules()
Returns:
the list of ingress rules associated with the security group

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

toString

public String toString()
Overrides:
toString in class Object

compareTo

public int compareTo(SecurityGroup arg0)
Specified by:
compareTo in interface Comparable<SecurityGroup>


Copyright © 2009-2012 jclouds. All Rights Reserved.