Class PortRange
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.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 range of ports.
- 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 Integerbegin()The first port in the port range.static PortRange.Builderbuilder()Integerend()The last port in the port range.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends PortRange.Builder>serializableBuilderClass()PortRange.BuildertoBuilder()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
-
begin
public final Integer begin()
The first port in the port range.
- Returns:
- The first port in the port range.
-
end
public final Integer end()
The last port in the port range.
- Returns:
- The last port in the port range.
-
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.
-
-