@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RuleGroupSourceStatelessRuleMatchAttributesSourcePorts extends Object implements Serializable, Cloneable, StructuredPojo
A port range to specify the source ports to inspect for.
| Constructor and Description |
|---|
RuleGroupSourceStatelessRuleMatchAttributesSourcePorts() |
| Modifier and Type | Method and Description |
|---|---|
RuleGroupSourceStatelessRuleMatchAttributesSourcePorts |
clone() |
boolean |
equals(Object obj) |
Integer |
getFromPort()
The starting port value for the port range.
|
Integer |
getToPort()
The ending port value for the port range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setFromPort(Integer fromPort)
The starting port value for the port range.
|
void |
setToPort(Integer toPort)
The ending port value for the port range.
|
String |
toString()
Returns a string representation of this object.
|
RuleGroupSourceStatelessRuleMatchAttributesSourcePorts |
withFromPort(Integer fromPort)
The starting port value for the port range.
|
RuleGroupSourceStatelessRuleMatchAttributesSourcePorts |
withToPort(Integer toPort)
The ending port value for the port range.
|
public RuleGroupSourceStatelessRuleMatchAttributesSourcePorts()
public void setFromPort(Integer fromPort)
The starting port value for the port range.
fromPort - The starting port value for the port range.public Integer getFromPort()
The starting port value for the port range.
public RuleGroupSourceStatelessRuleMatchAttributesSourcePorts withFromPort(Integer fromPort)
The starting port value for the port range.
fromPort - The starting port value for the port range.public void setToPort(Integer toPort)
The ending port value for the port range.
toPort - The ending port value for the port range.public Integer getToPort()
The ending port value for the port range.
public RuleGroupSourceStatelessRuleMatchAttributesSourcePorts withToPort(Integer toPort)
The ending port value for the port range.
toPort - The ending port value for the port range.public String toString()
toString in class ObjectObject.toString()public RuleGroupSourceStatelessRuleMatchAttributesSourcePorts clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.