Class PortRange
- java.lang.Object
-
- software.amazon.awssdk.services.networkfirewall.model.PortRange
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PortRange.Builder,PortRange>
@Generated("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, andDestinationPortssettings.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePortRange.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PortRange.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)IntegerfromPort()The lower limit of the port range.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends PortRange.Builder>serializableBuilderClass()PortRange.BuildertoBuilder()IntegertoPort()The upper limit of the port range.StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
fromPort
public final Integer fromPort()
The lower limit of the port range. This must be less than or equal to the
ToPortspecification.- Returns:
- The lower limit of the port range. This must be less than or equal to the
ToPortspecification.
-
toPort
public final Integer toPort()
The upper limit of the port range. This must be greater than or equal to the
FromPortspecification.- Returns:
- The upper limit of the port range. This must be greater than or equal to the
FromPortspecification.
-
toBuilder
public PortRange.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PortRange.Builder,PortRange>
-
builder
public static PortRange.Builder builder()
-
serializableBuilderClass
public static Class<? extends PortRange.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-