@Generated(value="software.amazon.awssdk:codegen") public final class PortInfo extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PortInfo.Builder,PortInfo>
Describes information about the ports on your virtual private server (or instance).
Modifier and Type | Class and Description |
---|---|
static interface |
PortInfo.Builder |
Modifier and Type | Method and Description |
---|---|
static PortInfo.Builder |
builder() |
boolean |
equals(Object obj) |
Integer |
fromPort()
The first port in the range.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
NetworkProtocol |
protocol()
The protocol.
|
String |
protocolAsString()
The protocol.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PortInfo.Builder> |
serializableBuilderClass() |
PortInfo.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
Integer |
toPort()
The last port in the range.
|
String |
toString() |
copy
public Integer fromPort()
The first port in the range.
public Integer toPort()
The last port in the range.
public NetworkProtocol protocol()
The protocol.
If the service returns an enum value that is not available in the current SDK version, protocol
will
return NetworkProtocol.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
protocolAsString()
.
NetworkProtocol
public String protocolAsString()
The protocol.
If the service returns an enum value that is not available in the current SDK version, protocol
will
return NetworkProtocol.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
protocolAsString()
.
NetworkProtocol
public PortInfo.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PortInfo.Builder,PortInfo>
public static PortInfo.Builder builder()
public static Class<? extends PortInfo.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.