@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortForwardingConfig extends Object implements Serializable, Cloneable, StructuredPojo
Configuration information for port forwarding.
| Constructor and Description |
|---|
PortForwardingConfig() |
| Modifier and Type | Method and Description |
|---|---|
PortForwardingConfig |
clone() |
boolean |
equals(Object obj) |
List<PortMapping> |
getPortMappings()
The port mappings for the configuration.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPortMappings(Collection<PortMapping> portMappings)
The port mappings for the configuration.
|
String |
toString()
Returns a string representation of this object.
|
PortForwardingConfig |
withPortMappings(Collection<PortMapping> portMappings)
The port mappings for the configuration.
|
PortForwardingConfig |
withPortMappings(PortMapping... portMappings)
The port mappings for the configuration.
|
public List<PortMapping> getPortMappings()
The port mappings for the configuration.
public void setPortMappings(Collection<PortMapping> portMappings)
The port mappings for the configuration.
portMappings - The port mappings for the configuration.public PortForwardingConfig withPortMappings(PortMapping... portMappings)
The port mappings for the configuration.
NOTE: This method appends the values to the existing list (if any). Use
setPortMappings(java.util.Collection) or withPortMappings(java.util.Collection) if you want to
override the existing values.
portMappings - The port mappings for the configuration.public PortForwardingConfig withPortMappings(Collection<PortMapping> portMappings)
The port mappings for the configuration.
portMappings - The port mappings for the configuration.public String toString()
toString in class ObjectObject.toString()public PortForwardingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.