org.dasein.cloud.services.firewall
Class Firewall

java.lang.Object
  extended by org.dasein.cloud.services.firewall.Firewall
All Implemented Interfaces:
Serializable

public class Firewall
extends Object
implements Serializable

Represents a firewill with a list of positive access rules.

Author:
George Reese @ enStratus (http://www.enstratus.com)
See Also:
Serialized Form

Constructor Summary
Firewall()
          Empty constructor for marshalling.
 
Method Summary
 String getDescription()
          Provides a long description of the underlying firewall that ideally describes why the firewall exists.
 String getName()
           
 String getProviderFirewallId()
           
 String getRegionId()
           
 boolean isActive()
           
 boolean isAvailable()
           
 void setActive(boolean active)
          Sets the current firewall active state.
 void setAvailable(boolean available)
          Sets the firewall availability.
 void setDescription(String description)
          Defines the firewall description.
 void setName(String name)
          Sets the firewall name.
 void setProviderFirewallId(String providerFirewallId)
          Sets the unique ID for the firewall.
 void setRegionId(String regionId)
          Sets the region ID for the region in which the firewall is located.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Firewall

public Firewall()
Empty constructor for marshalling.

Method Detail

getName

public String getName()
Returns:
the user-friendly name for the firewall

getProviderFirewallId

public String getProviderFirewallId()
Returns:
the cloud-specific unique identifier for this firewall

getRegionId

public String getRegionId()
Returns:
the unique region ID of the region in which this firewall operates

isActive

public boolean isActive()
Returns:
true if the firewall is currently active

isAvailable

public boolean isAvailable()
Returns:
true if the firewall is currently functioning properly

setActive

public void setActive(boolean active)
Sets the current firewall active state.

Parameters:
active - true if the firewall is currently active

setAvailable

public void setAvailable(boolean available)
Sets the firewall availability.

Parameters:
available - true if the firewall is currently operating properly

setName

public void setName(String name)
Sets the firewall name.

Parameters:
name - the user-friendly name for the firewall

setProviderFirewallId

public void setProviderFirewallId(String providerFirewallId)
Sets the unique ID for the firewall.

Parameters:
providerFirewallId - the cloud-specific unique ID for this firewall

setRegionId

public void setRegionId(String regionId)
Sets the region ID for the region in which the firewall is located.

Parameters:
regionId - the unique region ID for the firewall region

getDescription

public String getDescription()
Provides a long description of the underlying firewall that ideally describes why the firewall exists.

Returns:
a long description of the firewall

setDescription

public void setDescription(String description)
Defines the firewall description.

Parameters:
description - a description of the firewall