@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PortSet extends Object implements Serializable, Cloneable, StructuredPojo
A set of port ranges for use in the rules in a rule group.
| Constructor and Description | 
|---|
| PortSet() | 
| Modifier and Type | Method and Description | 
|---|---|
| PortSet | clone() | 
| boolean | equals(Object obj) | 
| List<String> | getDefinition()
 The set of port ranges. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setDefinition(Collection<String> definition)
 The set of port ranges. | 
| String | toString()Returns a string representation of this object. | 
| PortSet | withDefinition(Collection<String> definition)
 The set of port ranges. | 
| PortSet | withDefinition(String... definition)
 The set of port ranges. | 
public List<String> getDefinition()
The set of port ranges.
public void setDefinition(Collection<String> definition)
The set of port ranges.
definition - The set of port ranges.public PortSet withDefinition(String... definition)
The set of port ranges.
 NOTE: This method appends the values to the existing list (if any). Use
 setDefinition(java.util.Collection) or withDefinition(java.util.Collection) if you want to
 override the existing values.
 
definition - The set of port ranges.public PortSet withDefinition(Collection<String> definition)
The set of port ranges.
definition - The set of port ranges.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.