@Generated(value="software.amazon.awssdk:codegen") public final class PortRange extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PortRange.Builder,PortRange>
A single port range specification. This is used for source and destination port ranges in the stateless rule
MatchAttributes, SourcePorts, and DestinationPorts settings.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PortRange.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PortRange.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Integer |
fromPort()
The lower limit of the port range.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends PortRange.Builder> |
serializableBuilderClass() |
PortRange.Builder |
toBuilder() |
Integer |
toPort()
The upper limit of the port range.
|
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer fromPort()
The lower limit of the port range. This must be less than or equal to the ToPort specification.
ToPort
specification.public final Integer toPort()
The upper limit of the port range. This must be greater than or equal to the FromPort specification.
FromPort
specification.public PortRange.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PortRange.Builder,PortRange>public static PortRange.Builder builder()
public static Class<? extends PortRange.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.