org.jclouds.openstack.nova.v2_0.domain
Class SecurityGroupRule

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.domain.Ingress
      extended by org.jclouds.openstack.nova.v2_0.domain.SecurityGroupRule

public class SecurityGroupRule
extends Ingress

Defines a security group rule


Nested Class Summary
static class SecurityGroupRule.Builder<T extends SecurityGroupRule.Builder<T>>
           
static class SecurityGroupRule.Cidr
           
 
Constructor Summary
protected SecurityGroupRule(IpProtocol ipProtocol, int fromPort, int toPort, String id, TenantIdAndName group, String parentGroupId, SecurityGroupRule.Cidr ipRange)
           
 
Method Summary
static SecurityGroupRule.Builder<?> builder()
           
 boolean equals(Object obj)
           
 TenantIdAndName getGroup()
           
 String getId()
           
 String getIpRange()
           
 String getParentGroupId()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 SecurityGroupRule.Builder<?> toBuilder()
           
 
Methods inherited from class org.jclouds.openstack.nova.v2_0.domain.Ingress
getFromPort, getIpProtocol, getToPort, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SecurityGroupRule

@ConstructorProperties(value={"ip_protocol","from_port","to_port","id","group","parent_group_id","ip_range"})
protected SecurityGroupRule(IpProtocol ipProtocol,
                                                       int fromPort,
                                                       int toPort,
                                                       String id,
                                                       @Nullable
                                                       TenantIdAndName group,
                                                       String parentGroupId,
                                                       @Nullable
                                                       SecurityGroupRule.Cidr ipRange)
Method Detail

builder

public static SecurityGroupRule.Builder<?> builder()

toBuilder

public SecurityGroupRule.Builder<?> toBuilder()
Overrides:
toBuilder in class Ingress

getId

public String getId()

getGroup

@Nullable
public TenantIdAndName getGroup()

getParentGroupId

public String getParentGroupId()

getIpRange

@Nullable
public String getIpRange()

hashCode

public int hashCode()
Overrides:
hashCode in class Ingress

equals

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

string

protected com.google.common.base.Objects.ToStringHelper string()
Overrides:
string in class Ingress


Copyright © 2009-2012 jclouds. All Rights Reserved.