org.jclouds.cloudstack.domain
Class SecurityGroup
java.lang.Object
org.jclouds.cloudstack.domain.SecurityGroup
- All Implemented Interfaces:
- Comparable<SecurityGroup>
public class SecurityGroup
- extends Object
- implements Comparable<SecurityGroup>
Class SecurityGroup
- Author:
- Adrian Cole
SecurityGroup
@ConstructorProperties(value={"id","account","name","description","domain","domainid","jobid","jobstatus","ingressrule"})
protected SecurityGroup(String id,
@Nullable
String account,
@Nullable
String name,
@Nullable
String description,
@Nullable
String domain,
@Nullable
String domainId,
@Nullable
String jobId,
@Nullable
Integer jobStatus,
@Nullable
Set<IngressRule> ingressRules)
builder
public static SecurityGroup.Builder<?> builder()
toBuilder
public SecurityGroup.Builder<?> toBuilder()
getId
public String getId()
- Returns:
- the id of the security group
getAccount
@Nullable
public String getAccount()
- Returns:
- the account owning the security group
getName
@Nullable
public String getName()
- Returns:
- the name of the security group
getDescription
@Nullable
public String getDescription()
- Returns:
- an alternate display text of the security group.
getDomain
@Nullable
public String getDomain()
- Returns:
- Domain name for the security group
getDomainId
@Nullable
public String getDomainId()
- Returns:
- the domain id of the security group
getJobId
@Nullable
public String 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
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
string
protected com.google.common.base.Objects.ToStringHelper string()
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(SecurityGroup o)
- Specified by:
compareTo in interface Comparable<SecurityGroup>
Copyright © 2009-2012 jclouds. All Rights Reserved.