@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupSourceStatefulRulesHeaderDetails extends Object implements Serializable, Cloneable, StructuredPojo
The inspection criteria for a stateful rule.
Constructor and Description |
---|
RuleGroupSourceStatefulRulesHeaderDetails() |
Modifier and Type | Method and Description |
---|---|
RuleGroupSourceStatefulRulesHeaderDetails |
clone() |
boolean |
equals(Object obj) |
String |
getDestination()
The destination IP address or address range to inspect for, in CIDR notation.
|
String |
getDestinationPort()
The destination port to inspect for.
|
String |
getDirection()
The direction of traffic flow to inspect.
|
String |
getProtocol()
The protocol to inspect for.
|
String |
getSource()
The source IP address or address range to inspect for, in CIDR notation.
|
String |
getSourcePort()
The source port to inspect for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDestination(String destination)
The destination IP address or address range to inspect for, in CIDR notation.
|
void |
setDestinationPort(String destinationPort)
The destination port to inspect for.
|
void |
setDirection(String direction)
The direction of traffic flow to inspect.
|
void |
setProtocol(String protocol)
The protocol to inspect for.
|
void |
setSource(String source)
The source IP address or address range to inspect for, in CIDR notation.
|
void |
setSourcePort(String sourcePort)
The source port to inspect for.
|
String |
toString()
Returns a string representation of this object.
|
RuleGroupSourceStatefulRulesHeaderDetails |
withDestination(String destination)
The destination IP address or address range to inspect for, in CIDR notation.
|
RuleGroupSourceStatefulRulesHeaderDetails |
withDestinationPort(String destinationPort)
The destination port to inspect for.
|
RuleGroupSourceStatefulRulesHeaderDetails |
withDirection(String direction)
The direction of traffic flow to inspect.
|
RuleGroupSourceStatefulRulesHeaderDetails |
withProtocol(String protocol)
The protocol to inspect for.
|
RuleGroupSourceStatefulRulesHeaderDetails |
withSource(String source)
The source IP address or address range to inspect for, in CIDR notation.
|
RuleGroupSourceStatefulRulesHeaderDetails |
withSourcePort(String sourcePort)
The source port to inspect for.
|
public RuleGroupSourceStatefulRulesHeaderDetails()
public void setDestination(String destination)
The destination IP address or address range to inspect for, in CIDR notation. To match with any address, specify
ANY
.
destination
- The destination IP address or address range to inspect for, in CIDR notation. To match with any address,
specify ANY
.public String getDestination()
The destination IP address or address range to inspect for, in CIDR notation. To match with any address, specify
ANY
.
ANY
.public RuleGroupSourceStatefulRulesHeaderDetails withDestination(String destination)
The destination IP address or address range to inspect for, in CIDR notation. To match with any address, specify
ANY
.
destination
- The destination IP address or address range to inspect for, in CIDR notation. To match with any address,
specify ANY
.public void setDestinationPort(String destinationPort)
The destination port to inspect for. You can specify an individual port, such as 1994
. You also can
specify a port range, such as 1990:1994
. To match with any port, specify ANY
.
destinationPort
- The destination port to inspect for. You can specify an individual port, such as 1994
. You
also can specify a port range, such as 1990:1994
. To match with any port, specify
ANY
.public String getDestinationPort()
The destination port to inspect for. You can specify an individual port, such as 1994
. You also can
specify a port range, such as 1990:1994
. To match with any port, specify ANY
.
1994
. You
also can specify a port range, such as 1990:1994
. To match with any port, specify
ANY
.public RuleGroupSourceStatefulRulesHeaderDetails withDestinationPort(String destinationPort)
The destination port to inspect for. You can specify an individual port, such as 1994
. You also can
specify a port range, such as 1990:1994
. To match with any port, specify ANY
.
destinationPort
- The destination port to inspect for. You can specify an individual port, such as 1994
. You
also can specify a port range, such as 1990:1994
. To match with any port, specify
ANY
.public void setDirection(String direction)
The direction of traffic flow to inspect. If set to ANY
, the inspection matches bidirectional
traffic, both from the source to the destination and from the destination to the source. If set to
FORWARD
, the inspection only matches traffic going from the source to the destination.
direction
- The direction of traffic flow to inspect. If set to ANY
, the inspection matches bidirectional
traffic, both from the source to the destination and from the destination to the source. If set to
FORWARD
, the inspection only matches traffic going from the source to the destination.public String getDirection()
The direction of traffic flow to inspect. If set to ANY
, the inspection matches bidirectional
traffic, both from the source to the destination and from the destination to the source. If set to
FORWARD
, the inspection only matches traffic going from the source to the destination.
ANY
, the inspection matches
bidirectional traffic, both from the source to the destination and from the destination to the source. If
set to FORWARD
, the inspection only matches traffic going from the source to the
destination.public RuleGroupSourceStatefulRulesHeaderDetails withDirection(String direction)
The direction of traffic flow to inspect. If set to ANY
, the inspection matches bidirectional
traffic, both from the source to the destination and from the destination to the source. If set to
FORWARD
, the inspection only matches traffic going from the source to the destination.
direction
- The direction of traffic flow to inspect. If set to ANY
, the inspection matches bidirectional
traffic, both from the source to the destination and from the destination to the source. If set to
FORWARD
, the inspection only matches traffic going from the source to the destination.public void setProtocol(String protocol)
The protocol to inspect for. To inspector for all protocols, use IP
.
protocol
- The protocol to inspect for. To inspector for all protocols, use IP
.public String getProtocol()
The protocol to inspect for. To inspector for all protocols, use IP
.
IP
.public RuleGroupSourceStatefulRulesHeaderDetails withProtocol(String protocol)
The protocol to inspect for. To inspector for all protocols, use IP
.
protocol
- The protocol to inspect for. To inspector for all protocols, use IP
.public void setSource(String source)
The source IP address or address range to inspect for, in CIDR notation. To match with any address, specify
ANY
.
source
- The source IP address or address range to inspect for, in CIDR notation. To match with any address,
specify ANY
.public String getSource()
The source IP address or address range to inspect for, in CIDR notation. To match with any address, specify
ANY
.
ANY
.public RuleGroupSourceStatefulRulesHeaderDetails withSource(String source)
The source IP address or address range to inspect for, in CIDR notation. To match with any address, specify
ANY
.
source
- The source IP address or address range to inspect for, in CIDR notation. To match with any address,
specify ANY
.public void setSourcePort(String sourcePort)
The source port to inspect for. You can specify an individual port, such as 1994
. You also can
specify a port range, such as 1990:1994
. To match with any port, specify ANY
.
sourcePort
- The source port to inspect for. You can specify an individual port, such as 1994
. You also
can specify a port range, such as 1990:1994
. To match with any port, specify ANY
.public String getSourcePort()
The source port to inspect for. You can specify an individual port, such as 1994
. You also can
specify a port range, such as 1990:1994
. To match with any port, specify ANY
.
1994
. You also
can specify a port range, such as 1990:1994
. To match with any port, specify
ANY
.public RuleGroupSourceStatefulRulesHeaderDetails withSourcePort(String sourcePort)
The source port to inspect for. You can specify an individual port, such as 1994
. You also can
specify a port range, such as 1990:1994
. To match with any port, specify ANY
.
sourcePort
- The source port to inspect for. You can specify an individual port, such as 1994
. You also
can specify a port range, such as 1990:1994
. To match with any port, specify ANY
.public String toString()
toString
in class Object
Object.toString()
public RuleGroupSourceStatefulRulesHeaderDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.