@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 Object
Object.toString()
public PortForwardingConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.