org.jclouds.cloudstack.domain
Class FirewallRule

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

public class FirewallRule
extends Object
implements Comparable<FirewallRule>

Class FirewallRule

Author:
Andrei Savu

Nested Class Summary
static class FirewallRule.Builder<T extends FirewallRule.Builder<T>>
           
static class FirewallRule.Protocol
           
static class FirewallRule.State
           
 
Constructor Summary
protected FirewallRule(String id, Iterable<String> CIDRs, int startPort, int endPort, String icmpCode, String icmpType, String ipAddress, String ipAddressId, FirewallRule.Protocol protocol, FirewallRule.State state)
           
 
Method Summary
static FirewallRule.Builder<?> builder()
           
 int compareTo(FirewallRule other)
           
 boolean equals(Object obj)
           
 Set<String> getCIDRs()
           
 int getEndPort()
           
 String getIcmpCode()
           
 String getIcmpType()
           
 String getId()
           
 String getIpAddress()
           
 String getIpAddressId()
           
 FirewallRule.Protocol getProtocol()
           
 int getStartPort()
           
 FirewallRule.State getState()
           
 int hashCode()
           
protected  com.google.common.base.Objects.ToStringHelper string()
           
 FirewallRule.Builder<?> toBuilder()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FirewallRule

protected FirewallRule(String id,
                       @Nullable
                       Iterable<String> CIDRs,
                       int startPort,
                       int endPort,
                       @Nullable
                       String icmpCode,
                       @Nullable
                       String icmpType,
                       @Nullable
                       String ipAddress,
                       @Nullable
                       String ipAddressId,
                       @Nullable
                       FirewallRule.Protocol protocol,
                       @Nullable
                       FirewallRule.State state)
Method Detail

builder

public static FirewallRule.Builder<?> builder()

toBuilder

public FirewallRule.Builder<?> toBuilder()

getId

public String getId()

getCIDRs

public Set<String> getCIDRs()

getStartPort

public int getStartPort()

getEndPort

public int getEndPort()

getIcmpCode

@Nullable
public String getIcmpCode()

getIcmpType

@Nullable
public String getIcmpType()

getIpAddress

@Nullable
public String getIpAddress()

getIpAddressId

@Nullable
public String getIpAddressId()

getProtocol

@Nullable
public FirewallRule.Protocol getProtocol()

getState

@Nullable
public FirewallRule.State getState()

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


Copyright © 2009-2012 jclouds. All Rights Reserved.