@Generated(value="software.amazon.awssdk:codegen") public final class PortMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PortMapping.Builder,PortMapping>
An object representing a virtual node listener port mapping.
Modifier and Type | Class and Description |
---|---|
static interface |
PortMapping.Builder |
Modifier and Type | Method and Description |
---|---|
static PortMapping.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
port()
The port used for the port mapping.
|
PortProtocol |
protocol()
The protocol used for the port mapping.
|
String |
protocolAsString()
The protocol used for the port mapping.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PortMapping.Builder> |
serializableBuilderClass() |
PortMapping.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public Integer port()
The port used for the port mapping.
public PortProtocol protocol()
The protocol used for the port mapping.
If the service returns an enum value that is not available in the current SDK version, protocol
will
return PortProtocol.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
protocolAsString()
.
PortProtocol
public String protocolAsString()
The protocol used for the port mapping.
If the service returns an enum value that is not available in the current SDK version, protocol
will
return PortProtocol.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
protocolAsString()
.
PortProtocol
public PortMapping.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PortMapping.Builder,PortMapping>
public static PortMapping.Builder builder()
public static Class<? extends PortMapping.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.