public class Rule extends Object
| Modifier and Type | Method and Description |
|---|---|
Rule |
authorize()
Allows access to the specified port.
|
static Rule |
create() |
Rule |
destination(org.jclouds.compute.domain.NodeMetadata destination) |
Rule |
flush()
Revokes access to the specified port.
|
org.jclouds.compute.domain.NodeMetadata |
getDestination() |
int[] |
getPorts() |
String |
getSource() |
RuleType |
getType() |
Rule |
port(int port) |
Rule |
portRange(int fromPort,
int toPort) |
Rule |
ports(int... ports) |
Rule |
revoke()
Revokes access to the specified port.
|
void |
setDestination(org.jclouds.compute.domain.NodeMetadata destination) |
void |
setPorts(int[] ports) |
void |
setSource(String source) |
void |
setType(RuleType type) |
Rule |
source(String source) |
public static Rule create()
public Rule destination(org.jclouds.compute.domain.NodeMetadata destination)
destination - The allowed destination instance.public Rule port(int port)
port - The port on the destination which is to be opened. Overrides
any previous calls to port(int) or ports(int...).public Rule ports(int... ports)
ports - The ports on the destination which are to be opened.
Overrides
any previous calls to port(int) or ports(int...).public Rule portRange(int fromPort, int toPort)
fromPort - The starting port of the range (included).toPort - The ending port of the range (included).public Rule authorize()
public Rule revoke()
public Rule flush()
public String getSource()
public void setSource(String source)
public org.jclouds.compute.domain.NodeMetadata getDestination()
public void setDestination(org.jclouds.compute.domain.NodeMetadata destination)
public int[] getPorts()
public void setPorts(int[] ports)
public RuleType getType()
public void setType(RuleType type)
Copyright © 2011–2014 Red Hat. All rights reserved.