@Generated(value="software.amazon.awssdk:codegen") public final class PortMapping extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PortMapping.Builder,PortMapping>
An object that represents a 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) |
boolean |
equalsBySdkFields(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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Integer port()
The port used for the port mapping.
public final PortProtocol protocol()
The protocol used for the port mapping. Specify one protocol.
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().
PortProtocolpublic final String protocolAsString()
The protocol used for the port mapping. Specify one protocol.
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().
PortProtocolpublic PortMapping.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PortMapping.Builder,PortMapping>public static PortMapping.Builder builder()
public static Class<? extends PortMapping.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.