@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortRange extends Object implements Serializable, Cloneable, StructuredPojo
Details about the port range associated with a finding.
| Constructor and Description |
|---|
PortRange() |
| Modifier and Type | Method and Description |
|---|---|
PortRange |
clone() |
boolean |
equals(Object obj) |
Integer |
getBegin()
The beginning port in a port range.
|
Integer |
getEnd()
The ending port in a port range.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setBegin(Integer begin)
The beginning port in a port range.
|
void |
setEnd(Integer end)
The ending port in a port range.
|
String |
toString()
Returns a string representation of this object.
|
PortRange |
withBegin(Integer begin)
The beginning port in a port range.
|
PortRange |
withEnd(Integer end)
The ending port in a port range.
|
public void setBegin(Integer begin)
The beginning port in a port range.
begin - The beginning port in a port range.public Integer getBegin()
The beginning port in a port range.
public PortRange withBegin(Integer begin)
The beginning port in a port range.
begin - The beginning port in a port range.public void setEnd(Integer end)
The ending port in a port range.
end - The ending port in a port range.public Integer getEnd()
The ending port in a port range.
public PortRange withEnd(Integer end)
The ending port in a port range.
end - The ending port in a port range.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.