public IpamDiscoveredPublicAddress withSecurityGroups(java.util.Collection<IpamPublicAddressSecurityGroup> securityGroups) {
        setSecurityGroups(securityGroups);
        return this;
    }
<p>
Security groups associated with the resource that the IP address is assigned to.
</p>

@param securityGroups
       Security groups associated with the resource that the IP address is assigned to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/IpamDiscoveredPublicAddress.java